UserDefinedObjectDisplayContextStandardTextRef Enumeration — NXOpen Python API Reference 12.0.0 documentation

# UserDefinedObjectDisplayContextStandardTextRef Enumeration

NXOpen.UserDefinedObjects.UserDefinedObjectDisplayContext.StandardTextRef is an alias for NXOpen.UserDefinedObjects.UserDefinedObjectDisplayContextStandardTextRef

class `NXOpen.UserDefinedObjects.``UserDefinedObjectDisplayContextStandardTextRef`

  Bases: `object`

  This enumerated type specifies the type of reference point used in the text box for standard_text methods.

  Enum Members

  Enum Member | Enum Member Description
  --- | ---
  SystemDefault | Display the text using the system default reference point position
  BaselineStart | Display the text starting on the baseline, at the left end of the text box for left-to-right text, or at the right end of the text box for right-to-left text
  BaselineCenter | Display the text with the given position in the horizontal center of the text box at the baseline
  BaselineEnd | Display the text starting on the baseline, at the right end of the text box for left-to-right text, or at the left end of the text box for right-to-left text
  TopLeft | Display the text with the given position in the top left of the text box
  TopCenter | Display the text with the given position in the top center of the text box
  TopRight | Display the text with the given position in the top right of the text box
  MiddleLeft | Display the text with the given position in the middle left of the text box
  MiddleCenter | Display the text with the given position in middle center of text box
  MiddleRight | Display the text with the given position in middle right of text box
  BottomLeft | Display the text with the given position in bottom left of text box
  BottomCenter | Display the text with the given position in bottom center of text box
  BottomRight | Display the text with the given position in bottom right of text box

  `ValueOf`()

    Returns enum member equivalent to the value passed. Useful for bit operations of enum members.

    Signature `ValueOf(value)`

    Parameters: | value – Any integer value or bit operation result of enum members:type value: int:returns: Enum member equivalent to the value passed.
    Return type: | Enum Member type.

    New in version NX9.0.1.

    License requirements: None.