TextColorFontWidthBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# TextColorFontWidthBuilder Class

class `NXOpen.``TextColorFontWidthBuilder`

  Bases: `NXOpen.TaggedObject`, `NXOpen.GeometricUtilities.IComponentBuilder`

  Represent a `NXOpen.TextColorFontWidthBuilder`

  This is a sub-builder class and cannot be directly instantiated

  New in version NX9.0.0.

# Properties

Property | Description
--- | ---
Tag | Returns the Tag for this object.
TextColor | Returns or sets the text color
TextFont | Returns or sets the text font
TextStyle | Returns or sets the text style
TextWidth | Returns or sets the text width

# Methods

Method | Description
--- | ---
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Property Detail

## TextColor

`TextColorFontWidthBuilder.``TextColor`

  Returns or sets the text color

  `-------------------------------------`

  Getter Method

  Signature `TextColor`

  Returns: |
  Return type: | Id

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TextColor`

  Parameters: | textColor (Id) –

  New in version NX9.0.0.

  License requirements: None.

## TextFont

`TextColorFontWidthBuilder.``TextFont`

  Returns or sets the text font

  `-------------------------------------`

  Getter Method

  Signature `TextFont`

  Returns: |
  Return type: | str

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TextFont`

  Parameters: | textFont (str) –

  New in version NX9.0.0.

  License requirements: None.

## TextStyle

`TextColorFontWidthBuilder.``TextStyle`

  Returns or sets the text style

  `-------------------------------------`

  Getter Method

  Signature `TextStyle`

  Returns: |
  Return type: | str

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TextStyle`

  Parameters: | textStyle (str) –

  New in version NX9.0.0.

  License requirements: None.

## TextWidth

`TextColorFontWidthBuilder.``TextWidth`

  Returns or sets the text width

  `-------------------------------------`

  Getter Method

  Signature `TextWidth`

  Returns: |
  Return type: | str

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TextWidth`

  Parameters: | textWidth (str) –

  New in version NX9.0.0.

  License requirements: None.

# Method Detail

## Validate

`TextColorFontWidthBuilder.``Validate`

  Validate whether the inputs to the component are sufficient for commit to be called.

  If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

  Signature `Validate()`

  Returns: | Was self validation successful
  Return type: | bool

  New in version NX3.0.1.

  License requirements: None.