/// <summary> /// Clone a new instance of SLFont with identical font settings. /// </summary> /// <returns>An SLFont object with identical font settings.</returns> public SLFont Clone() { var font = new SLFont(MajorFont, MinorFont, listThemeColors, listIndexedColors); font.FontName = FontName; font.CharacterSet = CharacterSet; font.FontFamily = FontFamily; font.Bold = Bold; font.Italic = Italic; font.Strike = Strike; font.Outline = Outline; font.Shadow = Shadow; font.Condense = Condense; font.Extend = Extend; font.clrFontColor = clrFontColor.Clone(); font.HasFontColor = HasFontColor; font.FontSize = FontSize; font.vUnderline = vUnderline; font.HasUnderline = HasUnderline; font.vVerticalAlignment = vVerticalAlignment; font.HasVerticalAlignment = HasVerticalAlignment; font.vFontScheme = vFontScheme; font.HasFontScheme = HasFontScheme; return(font); }
internal SLBorderProperties Clone() { var bp = new SLBorderProperties(listThemeColors, listIndexedColors); bp.HasColor = HasColor; bp.clrReal = clrReal.Clone(); bp.HasBorderStyle = HasBorderStyle; bp.vBorderStyle = vBorderStyle; return(bp); }