LabelItem Class¶
-
class
NXOpen.UIStyler.
LabelItem
¶ Bases:
NXOpen.UIStyler.StylerItem
Represents a Label for UI Styler.
New in version NX5.0.0.
Properties¶
Property | Description |
---|---|
Sensitivity | Returns or sets the seisitivity of the dialog item |
Visibility | Returns or sets the visibility of the dialog item |
Methods¶
Method | Description |
---|---|
Dispose | Free resources associated with the instance. |
GetItemType | Gets the dialog item type. |
InitializeAttachment | Returns initialized dialog item attachment information @return attachment object |
IsEqualTo | Equates two styler items @return |
SetAttachment | Specifies the updated dialog item attachment information |
SetBitmap | Specifies a filename that contains a bitmap definition. |
SetLabel | Specifies descriptive text to display for the dialog item. |
Property Detail¶
Sensitivity¶
-
LabelItem.
Sensitivity
¶ Returns or sets the seisitivity of the dialog item
-------------------------------------
Getter Method
Signature
Sensitivity()
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Sensitivity(type)
Parameters: type (bool) – New in version NX5.0.0.
License requirements: None.
Visibility¶
-
LabelItem.
Visibility
¶ Returns or sets the visibility of the dialog item
-------------------------------------
Getter Method
Signature
Visibility()
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Visibility(type)
Parameters: type (bool) – New in version NX5.0.0.
License requirements: None.
Method Detail¶
SetBitmap¶
-
LabelItem.
SetBitmap
¶ Specifies a filename that contains a bitmap definition.
The filename must contain a UBM, XPM, or BMP extension. When you use this field, the system displays a bitmap for this dialog item instead of a text label. When a bitmap is present, the system uses the text label as tooltip text when a user places the mouse cursor over the bitmap. We recommend that you use a 16x16 bitmap for this dialog item.
Signature
SetBitmap(bitmapFile)
Parameters: bitmapFile (str) – NOTE: The full Unicode character set is not supported for this parameter. New in version NX5.0.0.
License requirements: None.
SetLabel¶
-
LabelItem.
SetLabel
¶ Specifies descriptive text to display for the dialog item.
It should describe the dialog item’s intended use.
Signature
SetLabel(strLabel)
Parameters: strLabel (str) – NOTE: The full Unicode character set is not supported for this parameter. New in version NX5.0.0.
License requirements: None.