TextStyleSetting Class¶
-
class
NXOpen.CAE.Xyplot.TextStyleSetting¶ Bases:
NXOpen.CAE.Xyplot.BaseDisplayStyleSetting,NXOpen.CAE.Xyplot.IVisibleDisplayStyleRepresents the text display style.
Call
CAE.Xyplot.BaseDisplayStyleSetting.CommitChange()to apply style changes to corresponding plot after it’s modified.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. |
| JournalIdentifier | Returns the identifier that would be recorded in a journal for this object. |
| LeaderStyle | Returns the leader style |
| NumberFormat | Returns the number format options |
| 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 |
| UseGlobalFontSetting | Returns or sets a value indicating whether to use the global setting of text font, font style and font size. |
| Visibility | Returns or sets the visibility |
| Weight | Returns or sets the text weight. |
Methods¶
| Method | Description |
|---|---|
| CommitChange | Commits any edits that have been applied to the display style. |
| Find | Finds the NXOpen.TaggedObject with the given identifier as recorded in a journal. |
Property Detail¶
Alignment¶
-
TextStyleSetting.Alignment¶ Returns or sets the text alignment.
Only valid for title options, legend options and axis label options.
-------------------------------------Getter Method
Signature
AlignmentReturns: Return type: NXOpen.CAE.Xyplot.TextAlignmentNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AlignmentParameters: alignment ( NXOpen.CAE.Xyplot.TextAlignment) –New in version NX9.0.0.
License requirements: None.
Color¶
-
TextStyleSetting.Color¶ Returns or sets the text color
-------------------------------------Getter Method
Signature
ColorReturns: Return type: Id New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ColorParameters: color (Id) – New in version NX9.0.0.
License requirements: None.
Font¶
-
TextStyleSetting.Font¶ Returns or sets the text font
-------------------------------------Getter Method
Signature
FontReturns: Return type: str New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FontParameters: font (str) – New in version NX9.0.0.
License requirements: None.
FontStyle¶
-
TextStyleSetting.FontStyle¶ Returns or sets the text font style.
Available when the text font is standard font.
-------------------------------------Getter Method
Signature
FontStyleReturns: Return type: NXOpen.Preferences.VisualizationFontsStyleTypeNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FontStyleParameters: fontStyle ( NXOpen.Preferences.VisualizationFontsStyleType) –New in version NX9.0.0.
License requirements: None.
FontType¶
-
TextStyleSetting.FontType¶ Returns or sets the text font type
-------------------------------------Getter Method
Signature
FontTypeReturns: Return type: NXOpen.CAE.Xyplot.FonttypeNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FontTypeParameters: fontType ( NXOpen.CAE.Xyplot.Fonttype) –New in version NX9.0.0.
License requirements: None.
GlobalSizeScale¶
-
TextStyleSetting.GlobalSizeScale¶ Returns or sets the scale of global text size.
It will be taken only when
CAE.Xyplot.TextStyleSetting.UseGlobalFontSetting`()is true, andCAE.Xyplot.TextStyleSetting.IsGlobalSizeAutoScaled()is false.-------------------------------------Getter Method
Signature
GlobalSizeScaleReturns: Return type: float New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
GlobalSizeScaleParameters: sizeScale (float) – New in version NX9.0.0.
License requirements: None.
IsGlobalSizeAutoScaled¶
-
TextStyleSetting.IsGlobalSizeAutoScaled¶ Returns or sets a value indicating whether to automatically adjust the scale of global text size to fit the screen.
It will be taken only when
CAE.Xyplot.TextStyleSetting.UseGlobalFontSetting`()is true.-------------------------------------Getter Method
Signature
IsGlobalSizeAutoScaledReturns: Return type: bool New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IsGlobalSizeAutoScaledParameters: isGlobalSizeAutoScaled (bool) – New in version NX9.0.0.
License requirements: None.
LeaderStyle¶
-
TextStyleSetting.LeaderStyle¶ Returns the leader style
-------------------------------------Getter Method
Signature
LeaderStyleReturns: Leader style Return type: NXOpen.CAE.Xyplot.LeaderStyleNew in version NX12.0.0.
License requirements: None.
NumberFormat¶
-
TextStyleSetting.NumberFormat¶ Returns the number format options
-------------------------------------Getter Method
Signature
NumberFormatReturns: Return type: NXOpen.CAE.NumberFormatNew in version NX12.0.0.
License requirements: None.
Orientation¶
-
TextStyleSetting.Orientation¶ Returns or sets the text orientation.
Only invalid for legend options.
-------------------------------------Getter Method
Signature
OrientationReturns: Return type: NXOpen.CAE.Xyplot.TextOrientationNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OrientationParameters: orientation ( NXOpen.CAE.Xyplot.TextOrientation) –New in version NX9.0.0.
License requirements: None.
Owner¶
-
TextStyleSetting.Owner¶ Returns the owner style
-------------------------------------Getter Method
Signature
OwnerReturns: Return type: NXOpen.CAE.Xyplot.IDisplayStyleNew in version NX10.0.0.
License requirements: None.
Size¶
-
TextStyleSetting.Size¶ Returns or sets the text size.
The acceptable range is 1-10.
-------------------------------------Getter Method
Signature
SizeReturns: Return type: int New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SizeParameters: size (int) – New in version NX9.0.0.
License requirements: None.
TextBoxStyle¶
-
TextStyleSetting.TextBoxStyle¶ Returns the style of text box
-------------------------------------Getter Method
Signature
TextBoxStyleReturns: Return type: NXOpen.CAE.Xyplot.TextBoxStyleSettingNew in version NX9.0.0.
License requirements: None.
UseGlobalFontSetting¶
-
TextStyleSetting.UseGlobalFontSetting¶ Returns or sets a value indicating whether to use the global setting of text font, font style and font size.
If True, you need to set text size scale by setting
CAE.Xyplot.TextStyleSetting.IsGlobalSizeAutoScaled`()orCAE.Xyplot.TextStyleSetting.GlobalSizeScale`()-------------------------------------Getter Method
Signature
UseGlobalFontSettingReturns: Return type: bool New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
UseGlobalFontSettingParameters: useGlobalFontSetting (bool) – New in version NX9.0.0.
License requirements: None.
Visibility¶
-
TextStyleSetting.Visibility¶ Returns or sets the visibility
-------------------------------------Getter Method
Signature
VisibilityReturns: Return type: bool New in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
VisibilityParameters: visibility (bool) – New in version NX12.0.0.
License requirements: None.
Weight¶
-
TextStyleSetting.Weight¶ Returns or sets the text weight.
Available when the text font is NX font.
-------------------------------------Getter Method
Signature
WeightReturns: Return type: NXOpen.Display.TransientTextTextSizeNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WeightParameters: weight ( NXOpen.Display.TransientTextTextSize) –New in version NX9.0.0.
License requirements: None.