CustomTextStyleSetting Class

class NXOpen.CAE.Xyplot.CustomTextStyleSetting

Bases: NXOpen.CAE.Xyplot.TextStyleSetting

Represents the text content definition in title options

Not support KF.

New in version NX9.0.0.

Properties

Property Description
Alignment Returns or sets the text alignment.
Color Returns or sets the text color
Font Returns or sets the text font
FontStyle Returns or sets the text font style.
FontType Returns or sets the text font type
GlobalSizeScale Returns or sets the scale of global text size.
IsGlobalSizeAutoScaled Returns or sets a value indicating whether to automatically adjust the scale of global text size to fit the screen.
Orientation Returns or sets the text orientation.
Owner Returns the owner style
Size Returns or sets the text size.
Tag Returns the Tag for this object.
TextBoxStyle Returns the style of text box
UseAutomatic Returns or sets a value indicating whether to define text content automatically .
UseGlobalFontSetting Returns or sets a value indicating whether to use the global setting of text font, font style and font size.
Weight Returns or sets the text weight.

Methods

Method Description
CommitChange Commits any edits that have been applied to the display style.
GetUseDefinedText Returns the text content defined by user.
SetUseDefinedText Sets the text content defined by user.

Property Detail

Owner

CustomTextStyleSetting.Owner

Returns the owner style

-------------------------------------

Getter Method

Signature Owner()

Returns:
Return type:NXOpen.CAE.Xyplot.IDisplayStyle

New in version NX10.0.0.

License requirements: None.

UseAutomatic

CustomTextStyleSetting.UseAutomatic

Returns or sets a value indicating whether to define text content automatically .

-------------------------------------

Getter Method

Signature UseAutomatic()

Returns:
Return type:bool

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature UseAutomatic(useAutomatic)

Parameters:useAutomatic (bool) –

New in version NX9.0.0.

License requirements: nx_ftk (“NX Advanced Graphing”)

Method Detail

CommitChange

CustomTextStyleSetting.CommitChange

Commits any edits that have been applied to the display style.

Triggers the corresponding plot to update graph.

Signature CommitChange()

New in version NX9.0.0.

License requirements: nx_ftk (“NX Advanced Graphing”)

GetUseDefinedText

CustomTextStyleSetting.GetUseDefinedText

Returns the text content defined by user.

Signature GetUseDefinedText()

Returns:
Return type:list of str

New in version NX9.0.0.

License requirements: None.

SetUseDefinedText

CustomTextStyleSetting.SetUseDefinedText

Sets the text content defined by user.

Signature SetUseDefinedText(text)

Parameters:text (list of str) –

New in version NX9.0.0.

License requirements: nx_ftk (“NX Advanced Graphing”)