TextStyleBuilder Class¶
-
class
NXOpen.Diagramming.TextStyleBuilder¶ Bases:
NXOpen.TaggedObject,NXOpen.GeometricUtilities.IComponentBuilderRepresents a TextStyleBuilder.
This is a sub-builder class and cannot be directly instantiated
New in version NX11.0.0.
Properties¶
| Property | Description |
|---|---|
| Tag | Returns the Tag for this object. |
| TextAlignment | Returns or sets the text alignment of the annotation |
| TextAllowWrapping | Returns or sets the text allow wrapping |
| TextAutoFit | Returns or sets the text auto fit |
| TextColorFontWidth | Returns the text color font width |
| TextHeight | Returns or sets the height of the annotation |
| TextOverlined | Returns or sets whether the text is overlined |
| TextUnderlined | Returns or sets whether the text is underlined |
Methods¶
| Method | Description |
|---|---|
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| TextStyleBuilderTextAlignmentType Enumeration | Represents the option NXOpen.Diagramming.TextStyleBuilder.TextAlignment() for a NXOpen.Diagramming.TextStyleBuilder. |
| TextStyleBuilderTextAutoFitType Enumeration | Represents the option for a NXOpen.Diagramming.TextStyleBuilder. |
Property Detail¶
TextAlignment¶
-
TextStyleBuilder.TextAlignment¶ Returns or sets the text alignment of the annotation
-------------------------------------Getter Method
Signature
TextAlignmentReturns: Return type: NXOpen.Diagramming.TextStyleBuilderTextAlignmentTypeNew in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextAlignmentParameters: alignment ( NXOpen.Diagramming.TextStyleBuilderTextAlignmentType) –New in version NX11.0.0.
License requirements: None.
TextAllowWrapping¶
-
TextStyleBuilder.TextAllowWrapping¶ Returns or sets the text allow wrapping
-------------------------------------Getter Method
Signature
TextAllowWrappingReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextAllowWrappingParameters: allowWrapping (bool) – New in version NX11.0.0.
License requirements: None.
TextAutoFit¶
-
TextStyleBuilder.TextAutoFit¶ Returns or sets the text auto fit
-------------------------------------Getter Method
Signature
TextAutoFitReturns: Return type: NXOpen.Diagramming.TextStyleBuilderTextAutoFitTypeNew in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextAutoFitParameters: autoFit ( NXOpen.Diagramming.TextStyleBuilderTextAutoFitType) –New in version NX11.0.0.
License requirements: None.
TextColorFontWidth¶
-
TextStyleBuilder.TextColorFontWidth¶ Returns the text color font width
-------------------------------------Getter Method
Signature
TextColorFontWidthReturns: Return type: NXOpen.TextColorFontWidthBuilderNew in version NX11.0.0.
License requirements: None.
TextHeight¶
-
TextStyleBuilder.TextHeight¶ Returns or sets the height of the annotation
-------------------------------------Getter Method
Signature
TextHeightReturns: Return type: float New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextHeightParameters: height (float) – New in version NX11.0.0.
License requirements: None.
TextOverlined¶
-
TextStyleBuilder.TextOverlined¶ Returns or sets whether the text is overlined
-------------------------------------Getter Method
Signature
TextOverlinedReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextOverlinedParameters: overlined (bool) – New in version NX11.0.0.
License requirements: None.
TextUnderlined¶
-
TextStyleBuilder.TextUnderlined¶ Returns or sets whether the text is underlined
-------------------------------------Getter Method
Signature
TextUnderlinedReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TextUnderlinedParameters: underlined (bool) – New in version NX11.0.0.
License requirements: None.
Method Detail¶
Validate¶
-
TextStyleBuilder.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.