Click or drag to resize

ISmartObjectLoadSmartObjects(String) Method

Load a smart object given a SGD Filename with an absolute path.

Namespace: Crestron.SimplSharpPro.DeviceSupport
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
uint LoadSmartObjects(
	string paramSgdFilename
)

Parameters

paramSgdFilename  String
A string that contains the the name of the file to load (with full path).

Return Value

UInt32
The number of smart objects loaded.
Exceptions
ExceptionCondition
InvalidOperationExceptionSmartObjects are already loaded for this device.
IOExceptionError processing SmartObject information.
Example
The following will show an Xpanel loading SmartObjects off the file system.
C#
//Create a panel and load up SmartObjects
var sgPanel = new XpanelForSmartGraphics(0x05, this);
sgPanel.LoadSmartObjects(Directory.GetApplicationDirectory() + "\\xPanel.sgd");

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also