Access and configure property types.
More...
|
bool | AffectLayout [get, set] |
| Gets or sets whether the property affects node layout.
|
|
bool | AffectRender [get, set] |
| Gets or sets whether the property affects node rendering.
|
|
string | Category [get, set] |
| Gets or sets the category in which Kanzi Studio shows the property type in the Properties and Add Properties windows.
|
|
Type | DataType [get] |
| Gets the data type of the property type.
|
|
object | DefaultValue [get, set] |
| Gets or sets the default value of the property type.
|
|
string | Description [get, set] |
| Gets or sets the description of the purpose the property type.
|
|
string | DisplayName [get, set] |
| Gets or sets the name of the property type the way Kanzi Studio shows it.
|
|
PropertyEditor | Editor [get, set] |
| Gets or sets the editor that lets Kanzi Studio users set the value of the property in the Properties window.
|
|
bool | IsCustomOrPluginPropertyType [get] |
|
bool | IsHidden [get, set] |
| Gets or sets whether Kanzi Studio hides the property type in the Add Properties window and Add Property context menu.
|
|
bool | IsInherited [get, set] |
| Gets or sets whether nodes can inherit from their ancestor nodes the value of this property.
|
|
bool | IsMessageArgument [get] |
| Gets whether you can use the property type as an argument of an action in Kanzi Studio.
|
|
bool | IsVisibleToRuntime [get, set] |
| Gets or sets whether Kanzi Studio exports the property to Kanzi Engine.
|
|
string | LocalName [get] |
| Gets the name of the property type without the property type namespace.
|
|
string | Name [get, set] |
| Gets or sets the name of the property type.
|
|
PropertyReadOnlyStatus | ReadOnlyStatus [get] |
| Gets a status that tells you whether the property type can be modified.
|
|
int? | SortingIndex [get, set] |
| Gets or sets the sorting index of the property.
|
|
string | ToolTip [get, set] |
| Gets or sets the tooltip that Kanzi Studio shows for the property type in the Properties and Add Properties windows.
|
|
IEnumerable< Type > | UserAddableHostTypes [get, set] |
| Gets or sets the node types to which Kanzi Studio users can add this property.
|
|
Access and configure property types.
- See also
- PropertyTypeLibrary, PropertyEditor
Examples
To create and configure a float property type:
{
"My Float Property",
"My Plugin Properties",
0.0f,
100.0f,
1.0f);
{
myFloatProperty.Editor = PropertyEditors.Slider;
}
myFloatProperty.DefaultValue = 50.0f;
}
◆ AffectLayout
Gets or sets whether the property affects node layout.
When you set AffectLayout to true and the value of the property changes on a node, Kanzi recalculates the layout for that node. Note that recalculating the layout decreases application performance.
◆ AffectRender
Gets or sets whether the property affects node rendering.
When you set AffectRender to true and the value of the property changes on a node, Kanzi updates the rendering for that node. If the property does not affect layout or size, you must set AffectRender to true to see the effect you want to achieve with this property.
◆ Category
Gets or sets the category in which Kanzi Studio shows the property type in the Properties and Add Properties windows.
Use the Category property to help Kanzi Studio users quickly find your property types.
◆ Description
Gets or sets the description of the purpose the property type.
Use the Description property to document the properties in your project.
◆ DisplayName
Gets or sets the name of the property type the way Kanzi Studio shows it.
- See also
- LocalName, Name
◆ IsHidden
Gets or sets whether Kanzi Studio hides the property type in the Add Properties window and Add Property context menu.
Kanzi Studio shows hidden property types in the Library > Property Types.
◆ IsMessageArgument
Gets whether you can use the property type as an argument of an action in Kanzi Studio.
Kanzi Studio users cannot add to nodes those properties that are action arguments.
◆ LocalName
Gets the name of the property type without the property type namespace.
Use the LocalName to access the property type in bindings and shaders.
- See also
- Name, DisplayName
◆ Name
Gets or sets the name of the property type.
- See also
- DisplayName, LocalName
◆ ReadOnlyStatus
PropertyReadOnlyStatus ReadOnlyStatus |
|
get |
Gets a status that tells you whether the property type can be modified.
- Returns
- One of these values:
- NotReadonly for property types created in the Kanzi Studio project. Kanzi Studio users can modify these property types.
- UserInterfaceReadonly for property types created in runtime metadata in Kanzi Engine or in a Kanzi Engine plugin. Kanzi Studio users cannot modify these property types.
- ProgrammaticallyReadonly for read-only property types created in runtime metadata in Kanzi Engine or in a Kanzi Engine plugin. You cannot modify these property types.
◆ SortingIndex
Gets or sets the sorting index of the property.
Sorting indices determine the order in which Kanzi Studio shows properties in the Properties window. Kanzi Studio orders alphabetically those properties that have the same sorting index.
◆ ToolTip
Gets or sets the tooltip that Kanzi Studio shows for the property type in the Properties and Add Properties windows.
Use the ToolTip property to explain to Kanzi Studio users what the property type does and how to use it.