TextAlignment


Text alignment flags.

public enum class TextAlignment
{
  PositionNoUpdate = 0,
  PositionUpdate   = 1,
 
  Left        = 0,
  Right       = 2,
  Center      = 6,

  Top         = 0,
  Bottom      = 8,
  Baseline    = 24,
  Mask        = Baseline| Center| PositionUpdate,

  VerticalBaseline   = Baseline,
  VerticalLeft       = Bottom,
  VerticalRight      = Top,
  VerticalCenter     = Center,
  VerticalBottom     = Right,
  VerticalTop        = Left
};

Current Position Usage

PositionNoUpdate The current position is neither used nor updated when displaying text.
PositionUpdate The current position is used and updated when displaying text.
Left The reference point is on the left edge of the bounding rectangle.
Center Text is horizontally aligned with the center of the bounding rectangle.
Right The reference point is on the right edge of the bounding rectangle.
Baseline The reference point is on the baseline of the text.
Top The reference point is on the top edge of the bounding rectangle.
Bottom The reference point is on the bottom edge of the bounding rectangle.

Other Alignment Flags

The vertical alignment flags are used when drawing text that is vertically aligned (such as Asian character sets).

Details

Name Space IPlusPlus::Graphics
Assembly IPlusPlus.Constants.dll