ISmartObjectLoadSmartObjects(ISmartObject) Method |
Load the smart objects to this device that are already loaded for the specified device.
Namespace: Crestron.SimplSharpPro.DeviceSupportAssembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntaxuint LoadSmartObjects(
ISmartObject deviceWithSmartObjects
)
Parameters
- deviceWithSmartObjects ISmartObject
- Device to gather SmartObject information from.
Return Value
UInt32The number of smart objects loaded.
Exceptions
Example
The following will first show an Xpanel loading SmartObjects off the file system. The second panel shares the same SmartObject information of the first.
var sgPanel = new XpanelForSmartGraphics(0x05, this);
sgPanel.LoadSmartObjects(Directory.GetApplicationDirectory() + "\\xPanel.sgd");
var secondSgPanel = new XpanelForSmartGraphics(0x06, this);
secondSgPanel.LoadSmartObjects(sgPanel);
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also