Get Text Rect VI

Returns a cluster that contains the left, top, right, and bottom dimensions, in pixels, of a string.


icon

Inputs/Outputs

  • ccclst.png [user-specified font]

    [user-specified font] specifies the specific font characteristics for the text to draw.

    The VI ignores this input unless desired font is User-specified Font.

  • cstr.png Font Name:

    Font Name specifies the font to use for the text.

    If you misspell the font name or specify a font that is not installed on the computer, the operating system selects a font.

  • ci16.png Size

    Size specifies the size of the font in points.

  • cbool.png Strikeout?

    Strikeout? specifies if the text appears in strikeout. If Strikeout? is TRUE, the text appears in strikeout.

  • cbool.png Italic?

    Italic? specifies if the text appears in italics. If Italic? is TRUE, the text appears in italics.

  • cbool.png Underline?

    Underline? specifies if the text is underlined. If Underline? is TRUE, the text appears underlined.

  • cbool.png Outline?

    Outline? specifies if the text is outlined. If Outline? is TRUE, the text appears outlined.

  • cbool.png Shadow?

    Shadow? specifies if the text has a shadow. If Shadow? is TRUE, the text appears in shadow.

  • cbool.png Bold?

    Bold? specifies if the text is bold. If Bold? is TRUE, the text appears bold.

  • cenum.png desired font(Application)

    desired font specifies the text font.

    0
    User-specified Font
    1
    Application Font
    (default)
    2
    System Font
    3
    Dialog Font
  • cnclst.png alignment(left, top)

    alignment specifies the location of the text relative to the origin you specify.

  • cenum.png horizontal

    horizontal sets the horizontal position of the text with respect to the origin.

    0left—The horizontal component of origin specifies the left edge of the text.
    1center—The horizontal component of the origin specifies the center of the text.
    2right—The horizontal component of origin specifies the right of the text.
  • cenum.png vertical

    vertical sets the vertical position of the text with respect to the origin.

    0top—The vertical component of origin specifies the top edge of the text.
    1center—The vertical component of the origin specifies the center of the text.
    2bottom—The vertical component of origin specifies the bottom of the text.
  • cnclst.png origin(0,0)

    origin is the coordinate of the starting point of the text.

  • ci16.png horizontal

    horizontal is the x-axis coordinate that increases to the right.

  • ci16.png vertical

    vertical is the y-axis coordinate that increases to the bottom.

  • cstr.png text

    text is the string to draw in the picture.

  • cenum.png text orientation

    text orientation sets the orientation of the text for which you want the bounding rectangle.

    0None (default)—Text appears normal.
    1Stacked—Text appears stacked.
    2Clockwise—Text appears rotated 90° clockwise. This results in vertical text that reads downward.
    3Counterclockwise—Text appears rotated 90° counterclockwise. This results in vertical text that reads upward.
  • inclst.png rect

    rect is a cluster that contains coordinates that describe the left, top, right, and bottom coordinates of the outer edges of the rectangle.

    Horizontal coordinates increase to the right, and vertical coordinates increase to the bottom.

  • ii16.png left

    left is the horizontal coordinate of the left edge of the rectangle.

  • ii16.png top

    top is the vertical coordinate of the top edge of the rectangle.

  • ii16.png right

    right is the horizontal coordinate of the right edge of the rectangle.

  • ii16.png bottom

    bottom is the vertical coordinate of the bottom edge of the rectangle.