OptionsProperty#
- class ansys.mechanical.stubs.v261.Ansys.ACT.Mechanical.AdditionalProperties.OptionsProperty(name: str, groupName: str)#
Bases:
objectProvides a way to create properties that show up as a drop down in the UI.
Overview#
CopyFrom method. |
|
Equals method. |
|
GetHashCode method. |
|
GetObjectData method. |
|
GetType method. |
|
Resume method. |
|
ToString method. |
|
add_OnAfterPropertyChanged method. |
|
add_OnBeforePropertyChanged method. |
|
remove_OnAfterPropertyChanged method. |
|
remove_OnBeforePropertyChanged method. |
Access property. |
|
The name of the property shown in the UI. If not set, the Name property is used. |
|
The group name of the property shown in the UI, and used to separate properties based on group name. |
|
ID property. |
|
The name of the property. |
|
Options shown in the drop-down, represented by a dictionary of int -> string. |
|
Owner property. |
|
PropertyControl property. |
|
Returns whether a property is readonly. |
|
Tag property. |
|
The tooltip of the property in the UI. |
|
Type property. |
|
Returns whether a property is valid. |
|
The stored value of the property. |
|
Get the string representation of the value. |
Property detail#
- property OptionsProperty.Access: Ansys.Common.Interop.WBPropertyBrowsing.AnsPropertyAccess | None#
Access property.
- property OptionsProperty.DisplayName: str | None#
The name of the property shown in the UI. If not set, the Name property is used.
- property OptionsProperty.GroupName: str | None#
The group name of the property shown in the UI, and used to separate properties based on group name.
- property OptionsProperty.Options: dict[Any, Any] | None#
Options shown in the drop-down, represented by a dictionary of int -> string. Where the int represents the option, and string represents string shown in the UI. When an option is selected the Value property of the property is set to to the option int.
- property OptionsProperty.PropertyControl: Ansys.ACT.Mechanical.AdditionalProperties.Control | None#
PropertyControl property.
Method detail#
- OptionsProperty.CopyFrom(property: Ansys.ACT.Mechanical.AdditionalProperties.CustomProperty) None#
CopyFrom method.
- OptionsProperty.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#
GetObjectData method.
- OptionsProperty.Resume(property: Ansys.ACT.Mechanical.AdditionalProperties.CustomProperty) None#
Resume method.
- OptionsProperty.add_OnAfterPropertyChanged(value: System.EventHandler[Any]) None#
add_OnAfterPropertyChanged method.
- OptionsProperty.add_OnBeforePropertyChanged(value: System.EventHandler[Any]) None#
add_OnBeforePropertyChanged method.