// Token: 0x06000188 RID: 392 RVA: 0x000086A4 File Offset: 0x000076A4 private void AddDefaultFonts() { Font font = new Font(this._doc, default(XF)); this._fonts.Add(font); this._fonts.Add((Font)font.Clone()); this._fonts.Add((Font)font.Clone()); this._fonts.Add((Font)font.Clone()); this._fonts.Add((Font)font.Clone()); }
private void AddDefaultFonts() { Font font = new Font(_doc, (XF)null); _fonts.Add(font); _fonts.Add((Font)font.Clone()); _fonts.Add((Font)font.Clone()); _fonts.Add((Font)font.Clone()); _fonts.Add((Font)font.Clone()); //we won't write this one out - just leave it here to fill the 4-index that's never written }
// Token: 0x06000189 RID: 393 RVA: 0x00008724 File Offset: 0x00007724 public ushort Add(Font font) { ushort?id = this.GetId(font); if (id == null) { id = new ushort?((ushort)this._fonts.Count); this._fonts.Add((Font)font.Clone()); } return(id.Value); }
/// <summary> /// Adds a new Font object to this collection. /// </summary> /// <param name="font">The Font object to add to this collection.</param> /// <returns>The id of the Font within this collection.</returns> public ushort Add(Font font) { ushort?fontId = GetId(font); if (fontId == null) { fontId = (ushort)_fonts.Count; _fonts.Add((Font)font.Clone()); } return((ushort)fontId); }
/// <summary> /// Creates a duplicate instance of this XF objet. /// </summary> /// <returns>A duplicate instance of this XF object.</returns> public object Clone() { XF clone = new XF(_doc); clone.Font = (Font)_font.Clone(); #if SILVERLIGHT clone.Format = new string(_format.ToCharArray()); #else clone.Format = (string)_format.Clone(); #endif if (!IsStyleXF) { clone.Style = (Style)_style.Clone(); } clone.HorizontalAlignment = HorizontalAlignment; clone.TextWrapRight = TextWrapRight; clone.VerticalAlignment = VerticalAlignment; clone.Rotation = Rotation; clone.IndentLevel = IndentLevel; clone.ShrinkToCell = ShrinkToCell; clone.TextDirection = TextDirection; clone.CellLocked = CellLocked; clone.FormulaHidden = FormulaHidden; clone.IsStyleXF = IsStyleXF; clone.UseNumber = UseNumber; clone.UseFont = UseFont; clone.UseMisc = UseMisc; clone.UseBorder = UseBorder; clone.UseBackground = UseBackground; clone.UseProtection = UseProtection; clone.LeftLineStyle = LeftLineStyle; clone.RightLineStyle = RightLineStyle; clone.TopLineStyle = TopLineStyle; clone.BottomLineStyle = BottomLineStyle; clone.LeftLineColor = LeftLineColor; clone.RightLineColor = RightLineColor; clone.DiagonalDescending = DiagonalDescending; clone.DiagonalAscending = DiagonalAscending; clone.TopLineColor = TopLineColor; clone.BottomLineColor = BottomLineColor; clone.DiagonalLineColor = DiagonalLineColor; clone.DiagonalLineStyle = DiagonalLineStyle; clone.Pattern = Pattern; clone.PatternColor = PatternColor; clone.PatternBackgroundColor = PatternBackgroundColor; clone.Target = Target; return(clone); }
internal void OnFontChange(Font newFont) { _font = (Font)newFont.Clone(); //_font.ID = newFont.ID; OnChange(); }
// Token: 0x060001A1 RID: 417 RVA: 0x00008EA1 File Offset: 0x00007EA1 internal void OnFontChange(Font newFont) { this._font = (Font)newFont.Clone(); this.OnChange(); }
internal void OnFontChange(Font newFont) { _font = (Font) newFont.Clone(); //_font.ID = newFont.ID; OnChange(); }
/// <summary> /// Adds a new Font object to this collection. /// </summary> /// <param name="font">The Font object to add to this collection.</param> /// <returns>The id of the Font within this collection.</returns> public ushort Add(Font font) { ushort? fontId = GetId(font); if (fontId == null) { fontId = (ushort)_fonts.Count; _fonts.Add((Font)font.Clone()); } return (ushort) fontId; }
private void AddDefaultFonts() { Font font = new Font(_doc, (XF)null); _fonts.Add(font); _fonts.Add((Font) font.Clone()); _fonts.Add((Font) font.Clone()); _fonts.Add((Font) font.Clone()); _fonts.Add((Font)font.Clone()); //we won't write this one out - just leave it here to fill the 4-index that's never written }