StylerItem Class

class NXOpen.UIStyler.StylerItem

Bases: NXOpen.TransientObject

Represents a Styler Item

New in version NX5.0.0.

Methods

Method Description
Dispose Free resources associated with the instance.
GetItemType Gets the dialog item type.
InitializeAttachment Returns initialized dialog item attachment information
IsEqualTo Equates two styler items
SetAttachment Specifies the updated dialog item attachment information

Enumerations

StylerItemItemType Enumeration Describes kind of action to be taken from callbac.

Method Detail

Dispose

StylerItem.Dispose

Free resources associated with the instance.

After this method is called, it is illegal to use the object. In .NET or Java, this method is automatically called when the object is deleted by the garbage collector.

Signature Dispose()

New in version NX5.0.0.

License requirements: None.

GetItemType

StylerItem.GetItemType

Gets the dialog item type.

User can write programs to query this attribute and determine the type of a dialog item in order to determine what further actions should be taken.

Signature GetItemType()

Returns:
Return type:NXOpen.UIStyler.StylerItemItemType

New in version NX5.0.0.

License requirements: None.

InitializeAttachment

StylerItem.InitializeAttachment

Returns initialized dialog item attachment information

Signature InitializeAttachment()

Returns:attachment object
Return type:NXOpen.UIStyler.Attachment

New in version NX5.0.0.

License requirements: None.

IsEqualTo

StylerItem.IsEqualTo

Equates two styler items

Signature IsEqualTo(itemToCompare)

Parameters:itemToCompare (NXOpen.UIStyler.StylerItem) – styler item to compare
Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

SetAttachment

StylerItem.SetAttachment

Specifies the updated dialog item attachment information

Signature SetAttachment(attachment)

Parameters:attachment (NXOpen.UIStyler.Attachment) – attachment object

New in version NX5.0.0.

License requirements: None.