DekGenius.com
[ Team LiB ] Previous Section Next Section

ContentAlignmentserializable

System.Drawing (system.drawing.dll)enum

This enumeration provides a set of values that represent a variety of different alignment styles. It is not used by any other classes in the drawing namespaces, but many Control classes use it to define the way their text labels and other visual content should be aligned when rendered.

public enum ContentAlignment {
   TopLeft = 1,
   TopCenter = 2,
   TopRight = 4,
   MiddleLeft = 16,
   MiddleCenter = 32,
   MiddleRight = 64,
   BottomLeft = 256,
   BottomCenter = 512,
   BottomRight = 1024
}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) ContentAlignment

Returned By

System.Windows.Forms.ButtonBase.{ImageAlign, TextAlign}, System.Windows.Forms.CheckBox.CheckAlign, System.Windows.Forms.Control.RtlTranslateContent(), System.Windows.Forms.Label.{ImageAlign, TextAlign}, System.Windows.Forms.RadioButton.CheckAlign

Passed To

System.Windows.Forms.ButtonBase.{ImageAlign, TextAlign}, System.Windows.Forms.CheckBox.CheckAlign, System.Windows.Forms.Control.{RtlTranslateAlignment(), RtlTranslateContent()}, System.Windows.Forms.Label.{CalcImageRenderBounds(), DrawImage(), ImageAlign, TextAlign}, System.Windows.Forms.RadioButton.CheckAlign

    [ Team LiB ] Previous Section Next Section