TextColorFontWidth Class¶
-
class
NXOpen.BlockStyler.TextColorFontWidth¶ Bases:
NXOpen.BlockStyler.UIBlockRepresents a Line Width block
New in version NX9.0.0.
Properties¶
| Property | Description |
|---|---|
| AvailableFontTypesAsString | Returns or sets the available font types. |
| Enable | Returns or sets the Enable. |
| Expanded | Returns or sets the Expanded |
| FontValue | Returns or sets the font value |
| Group | Returns or sets the Group |
| Label | Returns or sets the Label |
| LayoutAsString | Returns or sets the layout. |
| Name | Returns the name of the block or BlockID |
| Show | Returns or sets the Visibility of block. |
| StandardFontStyle | Returns or sets the standard font style. |
| Tag | Returns the Tag for this object. |
| Type | Returns the type of block |
| WidthValueAsString | Returns or sets the width value. |
Methods¶
| Method | Description |
|---|---|
| Focus | Focuses on the block. |
| GetColorValue | Gets text color values |
| GetProperties | Returns the properties of the block |
| IsNxFont | Returns the whether selected font is nx font or standard font. |
| SetColorValue | Sets text color values |
Property Detail¶
AvailableFontTypesAsString¶
-
TextColorFontWidth.AvailableFontTypesAsString¶ Returns or sets the available font types.
-------------------------------------Getter Method
Signature
AvailableFontTypesAsStringReturns: Return type: str New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AvailableFontTypesAsStringParameters: availableFontTypes (str) – New in version NX9.0.0.
License requirements: None.
FontValue¶
-
TextColorFontWidth.FontValue¶ Returns or sets the font value
-------------------------------------Getter Method
Signature
FontValueReturns: Return type: str New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FontValueParameters: fontValue (str) – New in version NX9.0.0.
License requirements: None.
LayoutAsString¶
-
TextColorFontWidth.LayoutAsString¶ Returns or sets the layout.
-------------------------------------Getter Method
Signature
LayoutAsStringReturns: Return type: str New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LayoutAsStringParameters: layoutString (str) – New in version NX9.0.0.
License requirements: None.
StandardFontStyle¶
-
TextColorFontWidth.StandardFontStyle¶ Returns or sets the standard font style.
-------------------------------------Getter Method
Signature
StandardFontStyleReturns: Return type: str New in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
StandardFontStyleParameters: fontStyle (str) – New in version NX12.0.0.
License requirements: None.
WidthValueAsString¶
-
TextColorFontWidth.WidthValueAsString¶ Returns or sets the width value.
-------------------------------------Getter Method
Signature
WidthValueAsStringReturns: Return type: str New in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WidthValueAsStringParameters: widthValueString (str) – New in version NX9.0.0.
License requirements: None.
Method Detail¶
GetColorValue¶
-
TextColorFontWidth.GetColorValue¶ Gets text color values
Signature
GetColorValue()Returns: color values to get from the property Return type: list of int New in version NX9.0.0.
License requirements: None.