Click or drag to resize

SimpleVisualPropertyValueT Class

Class to make it easier to work with VisualReference simple properties.
Inheritance Hierarchy
SystemObject
  Demo3D.NativeBaseCustomPropertyValue
    Demo3D.NativeCustomPropertyValueVisualReference
      Demo3D.NativeSimplePropertyValueVisualReference
        Demo3D.NativeSimpleVisualPropertyValueT

Namespace:  Demo3D.Native
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public class SimpleVisualPropertyValue<T> : SimplePropertyValue<VisualReference>
where T : Visual

Type Parameters

T
Type of visual, e.g. ConveyorVisual, PhotoEye etc.

The SimpleVisualPropertyValueT type exposes the following members.

Constructors
  NameDescription
Public methodSimpleVisualPropertyValueT(Visual, String)
Construct a SimpleVisualPropertyValue for a given visual and custom property name. This will create the custom property if it doesn't exist and ensure the type of the value is a VisualReference. The property will be shown in the Simple section of the property grid in the user interface. A property alias will be created for this property if it didn't already exist. The VisualReference.Visual will be returned in the Visual property and cast to the type T derived from Visual.
Public methodSimpleVisualPropertyValueT(Visual, String, VisualReference)
Construct a SimpleVisualPropertyValue for a given visual and custom property name. This will create the custom property if it doesn't exist and ensure the type of the value is a VisualReference. The property will be shown in the Simple section of the property grid in the user interface. A property alias will be created for this property if it didn't already exist. The VisualReference.Visual will be returned in the Visual property and cast to the type T derived from Visual.
Top
Properties
  NameDescription
Public propertyCategory
Category of the custom property.
(Inherited from BaseCustomPropertyValue.)
Public propertyDescription
Description of the custom property.
(Inherited from BaseCustomPropertyValue.)
Public propertyHidden
Whether the custom property is hidden (from the user interface).
(Inherited from BaseCustomPropertyValue.)
Public propertyInitialExpression
The expression to initialize the custom property to OnInitialize.
(Inherited from BaseCustomPropertyValue.)
Public propertyName
Name of the custom property.
(Inherited from BaseCustomPropertyValue.)
Public propertyPersistent
Whether the custom property is persistent (gets written to disk) or is temporary (not written to disk).
(Inherited from BaseCustomPropertyValue.)
Public propertyReadOnly
Whether the custom property is read only.
(Inherited from BaseCustomPropertyValue.)
Public propertyType
Type of the custom property value.
(Inherited from BaseCustomPropertyValue.)
Public propertyUpdatedScript
The script reference to listen to for updates to the custom property value.
(Inherited from BaseCustomPropertyValue.)
Public propertyValue
Get or set the custom property value.
(Inherited from CustomPropertyValueT.)
Public propertyVisual
The Visual referred to by the simple custom property value visual reference.
Top
Methods
  NameDescription
Public methodToString
The value of the custom property converted to a string.
(Inherited from BaseCustomPropertyValue.)
Top
Events
See Also