public LabelStyle() { Font = new Font { FontFamily = "Verdana", Size = 12 }; Offset = new Offset { X = 0, Y = 0 }; CollisionDetection = false; ForeColor = Color.Black; BackColor = new Brush { Color = Color.White }; HorizontalAlignment = HorizontalAlignmentEnum.Center; VerticalAlignment = VerticalAlignmentEnum.Center; }
public LabelStyle(LabelStyle labelStyle) { Font = new Font(labelStyle.Font); Offset = new Offset(labelStyle.Offset); CollisionDetection = false; CollisionBuffer = new Size(labelStyle.CollisionBuffer); ForeColor = new Color(labelStyle.ForeColor); BackColor = new Brush(labelStyle.BackColor); HorizontalAlignment = HorizontalAlignmentEnum.Center; VerticalAlignment = VerticalAlignmentEnum.Center; }
public LabelStyle(LabelStyle labelStyle) { Font = new Font(labelStyle.Font); Offset = new Offset(labelStyle.Offset); CollisionDetection = false; ForeColor = new Color(labelStyle.ForeColor); BackColor = new Brush(labelStyle.BackColor); HorizontalAlignment = HorizontalAlignmentEnum.Center; VerticalAlignment = VerticalAlignmentEnum.Center; Text = labelStyle.Text; LabelColumn = labelStyle.LabelColumn; LabelMethod = labelStyle.LabelMethod; }
public Font(Font font) { FontFamily = new string(font.FontFamily.ToCharArray()); Size = font.Size; }