Click or drag to resize

Tpmc9BaseLoadSmartObjects(String) Method

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

Namespace: Crestron.SimplSharpPro.UI
Assembly: Crestron.SimplSharpPro.UI (in Crestron.SimplSharpPro.UI.dll) Version: 2.21.121
Syntax
C#
public 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.

Implements

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

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also