Click or drag to resize

CustomVisualPropertyValueT Class

Class to make it easier to work with VisualReference custom properties.
Inheritance Hierarchy
SystemObject
  Demo3D.NativeBaseCustomPropertyValue
    Demo3D.NativeCustomPropertyValueVisualReference
      Demo3D.NativeCustomVisualPropertyValueT

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

Type Parameters

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

The CustomVisualPropertyValueT type exposes the following members.

Constructors
  NameDescription
Public methodCustomVisualPropertyValueT(Visual, String)
Construct a CustomVisualPropertyValue 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 VisualReference.Visual will be returned in the Visual property and cast to the type T derived from Visual.
Public methodCustomVisualPropertyValueT(Visual, String, VisualReference)
Construct a CustomVisualPropertyValue 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 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 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