Пример #1
0
 /// <summary>
 /// Constructor allowing to specify control common parameters
 /// </summary>
 /// <param name="opts">Generic control options</param>
 /// <param name="align">Control alignment options</param>
 /// <param name="backgroundColor">Background color of control. Use 0 for default color</param>
 /// <param name="textColor">Color of the text on the control. Use 0 for default color</param>
 /// <param name="left">Left alignment of the control. Use -1 for default alignment</param>
 /// <param name="top">Top alignment of the control. Use -1 to align the control under the previous control</param>
 /// <param name="width">Width of the control. Use -1 for auto width</param>
 /// <param name="height">Height of the control in property manager page dialog box units. Use -1 for the auto height</param>
 /// <param name="resizeOptions">Options to resize</param>
 public ControlOptionsAttribute(
     AddControlOptions_e opts               = AddControlOptions_e.Enabled | AddControlOptions_e.Visible,
     ControlLeftAlign_e align               = ControlLeftAlign_e.LeftEdge,
     KnownColor backgroundColor             = 0, KnownColor textColor = 0, short left = -1, short top = -1, short width = -1, short height = -1,
     ControlOnResizeOptions_e resizeOptions = 0)
 {
     Options         = opts;
     Align           = align;
     BackgroundColor = backgroundColor;
     TextColor       = textColor;
     Left            = left;
     Top             = top;
     Width           = width;
     Height          = height;
     ResizeOptions   = resizeOptions;
 }
Пример #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="caption">Label caption</param>
 /// <param name="align">Label alignment</param>
 /// <param name="fontStyle">Font style</param>
 public LabelAttribute(string caption, ControlLeftAlign_e align = ControlLeftAlign_e.LeftEdge, FontStyle_e fontStyle = FontStyle_e.Default)
 {
     Caption   = caption;
     Align     = align;
     FontStyle = fontStyle;
 }