Beispiel #1
0
 public void CopyTo(Style target)
 {
     target.BackColor = BackColor;
     target.Bold = Bold;
     target.Case = Case;
     target.CharacterSet = CharacterSet;
     target.FontName = FontName;
     target.ForeColor = ForeColor;
     target.IsChangeable = IsChangeable;
     target.IsHotspot = IsHotspot;
     target.IsSelectionEolFilled = IsSelectionEolFilled;
     target.IsVisible = IsVisible;
     target.Italic = Italic;
     target.Size = Size;
     target.Underline = Underline;
 }
Beispiel #2
0
        /// <summary>
        /// Copies the current style to another style.
        /// </summary>
        /// <param name="destination">The <see cref="Style" /> to which the current style should be copied.</param>
        public void CopyTo(Style destination)
        {
            if (destination == null)
                return;

            destination.BackColor = BackColor;
            // destination.Bold = Bold;
            destination.Case = Case;
            destination.FillLine = FillLine;
            destination.Font = Font;
            destination.ForeColor = ForeColor;
            destination.Hotspot = Hotspot;
            destination.Italic = Italic;
            destination.Size = Size;
            destination.SizeF = SizeF;
            destination.Underline = Underline;
            destination.Visible = Visible;
            destination.Weight = Weight;
        }
Beispiel #3
0
 internal void Config(Style style)
 {
     style.Font = "Lucida Console";
     style.SizeF = 8;
     style.ForeColor = ForeColor;
     if(BackColor != null)
         style.BackColor = BackColor.Value;
     style.Italic = IsItalic;
     style.Bold = IsBold;
     style.Underline = IsUnderlined;
 }