Packages

 

com.aspose.imaging.fileformats.wmf.consts

Class WmfTextAlignmentModeFlags

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.imaging.fileformats.wmf.consts.WmfTextAlignmentModeFlags


  • public final class WmfTextAlignmentModeFlags
    extends com.aspose.ms.System.Enum

    TextAlignmentMode Flags specify the relationship between a reference point and a bounding rectangle, for text alignment. These flags can be combined to specify multiple options, with the restriction that only one flag can be chosen that alters the drawing position in the playback device context. Horizontal text alignment is performed when the font has a horizontal default baseline.

    TextAlignmentMode flags specify three different components of text alignment: - The horizontal position of the reference point is determined by TA_RIGHT and TA_CENTER; if those bits are clear, the alignment MUST be TA_LEFT. - The vertical position of the reference point is determined by TA_BOTTOM and TA_BASELINE; if those bits are clear, the alignment MUST be TA_TOP. - Whether to update the output position in the playback device context after text output is determined by TA_UPDATECP; if that bit is clear, the position MUST NOT be updated. This is the reason for defining three different zero values in the enumeration; they represent the default states of the three components of text alignment.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int Baseline
      The reference point MUST be on the baseline of the text.
      static int Bottom
      The reference point MUST be on the bottom edge of the bounding rectangle.
      static int Center
      The reference point MUST be aligned horizontally with the center of the bounding rectangle.
      static int Horizontal
      Represents Horisontal text algin sets (Left | Right | Center)
      static int Left
      The reference point MUST be on the left edge of the bounding rectangle.
      static int Noupdatecp
      The drawing position in the playback device context MUST NOT be updated after each text output call.
      static int Right
      The reference point MUST be on the right edge of the bounding rectangle.
      static int Rtlreading
      The text MUST be laid out in right-to-left reading order, instead of the default left-to right order.
      static int Top
      The reference point MUST be on the top edge of the bounding rectangle.
      static int Updatecp
      The drawing position in the playback device context MUST be updated after each text output call.
      static int Vertical
      Represents Vertical text algin sets (Top | Bottom | Baseline)
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getName, getNames, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, getValues, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject, toString
    • Field Detail

      • Noupdatecp

        public static final int Noupdatecp

        The drawing position in the playback device context MUST NOT be updated after each text output call. The reference point MUST be passed to the text output function.

        See Also:
        Constant Field Values
      • Left

        public static final int Left

        The reference point MUST be on the left edge of the bounding rectangle.

        See Also:
        Constant Field Values
      • Top

        public static final int Top

        The reference point MUST be on the top edge of the bounding rectangle.

        See Also:
        Constant Field Values
      • Updatecp

        public static final int Updatecp

        The drawing position in the playback device context MUST be updated after each text output call. It MUST be used as the reference point.

        See Also:
        Constant Field Values
      • Right

        public static final int Right

        The reference point MUST be on the right edge of the bounding rectangle.

        See Also:
        Constant Field Values
      • Center

        public static final int Center

        The reference point MUST be aligned horizontally with the center of the bounding rectangle.

        See Also:
        Constant Field Values
      • Bottom

        public static final int Bottom

        The reference point MUST be on the bottom edge of the bounding rectangle.

        See Also:
        Constant Field Values
      • Baseline

        public static final int Baseline

        The reference point MUST be on the baseline of the text.

        See Also:
        Constant Field Values
      • Rtlreading

        public static final int Rtlreading

        The text MUST be laid out in right-to-left reading order, instead of the default left-to right order. This SHOULD be applied only when the font that is defined in the playback device context is either Hebrew or Arabic.

        See Also:
        Constant Field Values
      • Horizontal

        public static final int Horizontal

        Represents Horisontal text algin sets (Left | Right | Center)

        See Also:
        Constant Field Values
      • Vertical

        public static final int Vertical

        Represents Vertical text algin sets (Top | Bottom | Baseline)

        See Also:
        Constant Field Values