コード例 #1
0
ファイル: Symbol.cs プロジェクト: pengxinglove/PersonalSpire
        SizeF Interface2.Measure(Class196 dc)
        {
            SizeF  ef  = new SizeF();
            string str = char.ConvertFromUtf32(this.CharacterCode);

            Spire.Doc.Formatting.CharacterFormat characterFormat = this.CharacterFormat;
            if ((!this.CharacterFormat.HasValue(0) && (this.FontName != string.Empty)) && (this.FontName != this.CharacterFormat.FontName))
            {
                characterFormat = new Spire.Doc.Formatting.CharacterFormat(base.Document);
                characterFormat.ImportContainer(this.CharacterFormat);
                characterFormat.method_21(this.CharacterFormat);
                characterFormat.ApplyBase(base.method_28().BreakCharacterFormat.BaseFormat);
                characterFormat.FontSize = this.CharacterFormat.FontSize;
                characterFormat.FontName = this.FontName;
            }
            if (this.CharacterFormat.IsSmallCaps)
            {
                ef = dc.method_1() ? dc.method_310(str, dc.method_376(characterFormat), null, true) : dc.method_317(str, dc.method_365(characterFormat), null, true);
            }
            else
            {
                ef = dc.method_1() ? dc.method_309(str, dc.method_376(characterFormat), null) : dc.method_316(str, dc.method_365(characterFormat), null);
            }
            ef.Height       = this.CharacterFormat.FontSize;
            characterFormat = null;
            return(ef);
        }
コード例 #2
0
 internal void method_36()
 {
     if ((this.cellCollection_0 != null) && (this.cellCollection_0.Count > 0))
     {
         int       count = this.cellCollection_0.Count;
         TableCell cell  = null;
         for (int i = 0; i < count; i++)
         {
             cell = this.cellCollection_0[i];
             cell.method_62();
             cell = null;
         }
         this.cellCollection_0.Clear();
         this.cellCollection_0 = null;
     }
     if (this.rowFormat_0 != null)
     {
         this.rowFormat_0.Close();
         this.rowFormat_0 = null;
     }
     if (this.characterFormat_0 != null)
     {
         this.characterFormat_0.Close();
         this.characterFormat_0 = null;
     }
 }
コード例 #3
0
 internal ListLevel(Document A_0) : base(A_0, null)
 {
     this.string_12 = new string[] {
         string.Empty, BookmarkStart.b("笳堵崷", 14), BookmarkStart.b("怳䄵圷", 14), BookmarkStart.b("怳帵䨷弹夻", 14), BookmarkStart.b("爳夵䴷䠹", 14), BookmarkStart.b("爳張丷弹", 14), BookmarkStart.b("朳張䀷", 14), BookmarkStart.b("朳匵丷弹刻", 14), BookmarkStart.b("焳張強刹䠻", 14), BookmarkStart.b("稳張嘷弹", 14), BookmarkStart.b("怳匵嘷", 14), BookmarkStart.b("焳娵崷䰹夻倽", 14), BookmarkStart.b("怳䄵崷嘹䨻嬽", 14), BookmarkStart.b("怳帵儷䠹䠻嬽┿ⱁ", 14), BookmarkStart.b("爳夵䴷䠹䠻嬽┿ⱁ", 14), BookmarkStart.b("爳張帷丹夻嬽⸿", 14),
         BookmarkStart.b("朳張䀷丹夻嬽⸿", 14), BookmarkStart.b("朳匵丷弹刻䨽┿❁⩃", 14), BookmarkStart.b("焳張強刹䠻嬽┿ⱁ", 14), BookmarkStart.b("稳張嘷弹䠻嬽┿ⱁ", 14)
     };
     this.string_13 = new string[] { string.Empty, BookmarkStart.b("怳匵嘷", 14), BookmarkStart.b("怳䄵崷吹䠻䜽", 14), BookmarkStart.b("怳帵儷䠹䠻䜽", 14), BookmarkStart.b("爳夵䨷丹䔻", 14), BookmarkStart.b("爳張帷丹䔻", 14), BookmarkStart.b("朳張䀷丹䔻", 14), BookmarkStart.b("朳匵丷弹刻䨽㤿", 14), BookmarkStart.b("焳張強刹䠻䜽", 14), BookmarkStart.b("稳張嘷弹䠻䜽", 14) };
     this.string_14 = new string[] {
         string.Empty, BookmarkStart.b("爳張䨷䤹䠻", 14), BookmarkStart.b("朳匵嬷唹刻娽", 14), BookmarkStart.b("怳帵儷䠹堻", 14), BookmarkStart.b("爳夵䴷䠹䠻嘽", 14), BookmarkStart.b("爳張帷丹吻", 14), BookmarkStart.b("朳張䀷丹吻", 14), BookmarkStart.b("朳匵丷弹刻䨽⠿", 14), BookmarkStart.b("焳張強刹䠻嘽", 14), BookmarkStart.b("稳張嘷丹吻", 14), BookmarkStart.b("怳匵嘷丹吻", 14), BookmarkStart.b("焳娵崷䰹夻倽㐿⩁", 14), BookmarkStart.b("怳䄵崷嘹娻䨽⠿", 14), BookmarkStart.b("怳帵儷䠹䠻嬽┿ⱁぃ⹅", 14), BookmarkStart.b("爳夵䴷䠹䠻嬽┿ⱁぃ⹅", 14), BookmarkStart.b("爳張帷丹夻嬽⸿㙁ⱃ", 14),
         BookmarkStart.b("朳張䀷丹夻嬽⸿㙁ⱃ", 14), BookmarkStart.b("朳匵丷弹刻䨽┿❁⩃㉅⁇", 14), BookmarkStart.b("焳張強刹䠻嬽┿ⱁぃ⹅", 14), BookmarkStart.b("稳張嘷弹䠻嬽┿ⱁぃ⹅", 14)
     };
     this.string_15 = new string[] { string.Empty, BookmarkStart.b("怳匵嘷丹吻", 14), BookmarkStart.b("怳䄵崷吹䠻圽┿㙁ⱃ", 14), BookmarkStart.b("怳帵儷䠹䠻圽┿㙁ⱃ", 14), BookmarkStart.b("爳夵䨷丹唻嬽㐿⩁", 14), BookmarkStart.b("爳張帷丹唻嬽㐿⩁", 14), BookmarkStart.b("朳張䀷丹唻嬽㐿⩁", 14), BookmarkStart.b("朳匵丷弹刻䨽⤿❁ぃ⹅", 14), BookmarkStart.b("焳張強刹䠻圽┿㙁ⱃ", 14), BookmarkStart.b("稳張嘷弹䠻圽┿㙁ⱃ", 14) };
     this.string_16 = new string[] {
         BookmarkStart.b("稳䌵吷嘹", 14), BookmarkStart.b("焳張嘷䤹", 14), BookmarkStart.b("渳䄵崷匹", 14), BookmarkStart.b("瀳䐵崷匹", 14), BookmarkStart.b("戳張崷䠹", 14), BookmarkStart.b("爳쨵嘷尹", 14), BookmarkStart.b("朳匵嬷刹伻", 14), BookmarkStart.b("朳張崷堹夻倽", 14), BookmarkStart.b("申唵倷丹", 14), BookmarkStart.b("稳匵䴷吹", 14), BookmarkStart.b("渳匵倷吹", 14), BookmarkStart.b("焳娵帷", 14), BookmarkStart.b("渳䄵츷嘹娻", 14), BookmarkStart.b("瀳䐵崷匹䘻嬽⠿ⱁ", 14), BookmarkStart.b("戳張崷䠹䘻嬽⠿ⱁ", 14), BookmarkStart.b("爳쨵嘷尹䘻嬽⠿ⱁ", 14),
         BookmarkStart.b("朳匵嬷刹䘻嬽⠿ⱁ", 14), BookmarkStart.b("朳張崷堹䘻嬽⠿ⱁ", 14), BookmarkStart.b("申唵倷丹䘻嬽⠿ⱁ", 14), BookmarkStart.b("稳匵䴷吹䘻嬽⠿ⱁ", 14)
     };
     this.string_17 = new string[] { string.Empty, BookmarkStart.b("渳匵倷吹", 14), BookmarkStart.b("渳䄵夷吹䘻圽✿", 14), BookmarkStart.b("瀳䐵崷匹圽✿", 14), BookmarkStart.b("戳張崷䠹䘻圽✿", 14), BookmarkStart.b("爳쨵嘷尹䘻圽✿", 14), BookmarkStart.b("朳匵嬷刹䘻圽✿", 14), BookmarkStart.b("朳張崷堹䘻圽✿", 14), BookmarkStart.b("申唵倷丹䘻圽✿", 14), BookmarkStart.b("稳匵䴷吹䘻圽✿", 14) };
     this.string_18 = new string[] {
         BookmarkStart.b("稳䌵吷嘹䠻嬽", 14), BookmarkStart.b("焳䐵䬷丹夻", 14), BookmarkStart.b("渳䄵崷匹䠻嬽", 14), BookmarkStart.b("瀳䐵儷丹䠻嬽", 14), BookmarkStart.b("戳張崷䠹䠻嬽", 14), BookmarkStart.b("爳쨵嘷尹䠻嬽", 14), BookmarkStart.b("朳匵嬷刹伻䨽┿", 14), BookmarkStart.b("朳張崷堹䠻嬽", 14), BookmarkStart.b("申唵倷丹夻", 14), BookmarkStart.b("稳匵䴷吹䠻嬽", 14), BookmarkStart.b("渳匵倷吹䠻嬽", 14), BookmarkStart.b("焳娵帷丹夻", 14), BookmarkStart.b("渳䄵츷嘹娻䨽┿", 14), BookmarkStart.b("瀳䐵崷匹䘻嬽⠿ⱁぃ⍅", 14), BookmarkStart.b("戳張崷䠹䘻嬽⠿ⱁぃ⍅", 14), BookmarkStart.b("爳쨵嘷尹䘻嬽⠿ⱁぃ⍅", 14),
         BookmarkStart.b("朳匵嬷刹䘻嬽⠿ⱁぃ⍅", 14), BookmarkStart.b("朳張崷堹䘻嬽⠿ⱁぃ⍅", 14), BookmarkStart.b("申唵倷丹䘻嬽⠿ⱁぃ⍅", 14), BookmarkStart.b("稳匵䴷吹䘻嬽⠿ⱁぃ⍅", 14)
     };
     this.string_19         = new string[] { string.Empty, BookmarkStart.b("渳匵倷吹䠻嬽", 14), BookmarkStart.b("渳䄵夷吹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("瀳䐵崷匹圽✿ㅁぃ⍅", 14), BookmarkStart.b("戳張崷䠹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("爳쨵嘷尹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("朳匵嬷刹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("朳張崷堹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("申唵倷丹䘻圽✿ㅁぃ⍅", 14), BookmarkStart.b("稳匵䴷吹䘻圽✿ㅁぃ⍅", 14) };
     this.string_22         = BookmarkStart.b("ᨳ", 14);
     this.string_23         = string.Empty;
     this.byte_1            = new byte[9];
     this.short_0           = -1;
     this.bool_6            = true;
     this.string_26         = string.Empty;
     this.int_10            = 0xfff;
     this.characterFormat_0 = base.m_doc.CreateCharacterFormatImpl();
     this.characterFormat_0.method_0(this);
     this.paragraphFormat_0 = base.m_doc.CreateParagraphFormatImpl();
     this.paragraphFormat_0.method_0(this);
 }
コード例 #4
0
 public TableRow(IDocument document) : base((Document)document, null)
 {
     this.bool_7            = true;
     this.cellCollection_0  = new CellCollection(this);
     this.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(base.Document);
     this.rowFormat_0       = new Spire.Doc.Formatting.RowFormat();
     this.rowFormat_0.method_0(this);
 }
コード例 #5
0
 public void ApplyCharacterFormat(Spire.Doc.Formatting.CharacterFormat charFormat)
 {
     if (charFormat != null)
     {
         this.m_charFormat = charFormat.method_23() as Spire.Doc.Formatting.CharacterFormat;
         this.m_charFormat.method_0(this);
     }
 }
コード例 #6
0
 internal TableRow(IDocument A_0, Spire.Doc.Formatting.RowFormat A_1) : base((Document)A_0, null)
 {
     this.bool_7            = true;
     this.cellCollection_0  = new CellCollection(this);
     this.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(base.Document);
     this.rowFormat_0       = A_1;
     this.rowFormat_0.method_0(this);
 }
コード例 #7
0
 internal virtual void Close()
 {
     if (this.m_charFormat != null)
     {
         this.m_charFormat.Close();
         this.m_charFormat = null;
     }
 }
コード例 #8
0
 internal void method_16()
 {
     this.byte_1 = null;
     if (this.characterFormat_0 != null)
     {
         this.characterFormat_0.Close();
         this.characterFormat_0 = null;
     }
     if (this.paragraphFormat_0 != null)
     {
         this.paragraphFormat_0.Close();
         this.characterFormat_0 = null;
     }
 }
コード例 #9
0
 public TableCell(IDocument document) : base((Document)document, null)
 {
     this.color_0         = Color.Empty;
     this.float_3         = float.MinValue;
     this.byte_3          = 1;
     this.int_8           = 1;
     this.int_9           = 1;
     this.short_0         = 1;
     this.ftsWidth_0      = FtsWidth.Auto;
     this.cellWidthType_0 = Spire.Doc.CellWidthType.Auto;
     this.cellFormat_0    = new Spire.Doc.Formatting.CellFormat();
     this.cellFormat_0.method_0(this);
     this.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(base.Document);
 }
コード例 #10
0
 internal void method_62()
 {
     base.method_28();
     if (this.characterFormat_0 != null)
     {
         this.characterFormat_0.Close();
         this.characterFormat_0 = null;
     }
     if (this.cellFormat_0 != null)
     {
         this.cellFormat_0.Close();
         this.cellFormat_0 = null;
     }
 }
コード例 #11
0
 private void method_50(Body A_0, Spire.Doc.Formatting.ParagraphFormat A_1, Spire.Doc.Formatting.CharacterFormat A_2)
 {
     for (int i = 0; i < A_0.Items.Count; i++)
     {
         DocumentObject obj2 = A_0.Items[i];
         if (obj2 is Paragraph)
         {
             this.method_49(obj2 as Paragraph, A_1, A_2);
         }
         else if (obj2 is StructureDocumentTag)
         {
             this.method_50((obj2 as StructureDocumentTag).SDTContent, A_1, A_2);
         }
     }
 }
コード例 #12
0
ファイル: Symbol.cs プロジェクト: pengxinglove/PersonalSpire
        internal TextRange method_30()
        {
            TextRange range = new TextRange(base.Document);
            string    str   = char.ConvertFromUtf32(this.CharacterCode);

            Spire.Doc.Formatting.CharacterFormat characterFormat = range.CharacterFormat;
            characterFormat.ImportContainer(this.CharacterFormat);
            characterFormat.method_21(this.CharacterFormat);
            if ((!this.CharacterFormat.HasValue(0) && !string.IsNullOrEmpty(this.FontName)) && (this.FontName != this.CharacterFormat.FontName))
            {
                characterFormat.ApplyBase(base.method_28().BreakCharacterFormat.BaseFormat);
                characterFormat.FontSize = this.CharacterFormat.FontSize;
            }
            range.Text = str;
            range.method_0(base.Owner);
            return(range);
        }
コード例 #13
0
 internal void method_48(Spire.Doc.Formatting.CellFormat A_0, Spire.Doc.Formatting.ParagraphFormat A_1, Spire.Doc.Formatting.CharacterFormat A_2)
 {
     this.CellFormat.ApplyBase(A_0);
     this.method_50(this, A_1, A_2);
 }
コード例 #14
0
 internal FieldMark(IDocument A_0, Spire.Doc.Formatting.CharacterFormat A_1, FieldMarkType A_2) : this(A_0, A_2)
 {
     base.m_charFormat = A_1;
 }
コード例 #15
0
 internal TextRange(IDocument A_0, string A_1, Spire.Doc.Formatting.CharacterFormat A_2) : this(A_0)
 {
     base.m_charFormat = A_2;
     base.m_charFormat.method_0(this);
     this.Text = A_1;
 }
コード例 #16
0
 private void method_49(Paragraph A_0, Spire.Doc.Formatting.ParagraphFormat A_1, Spire.Doc.Formatting.CharacterFormat A_2)
 {
     if (A_0 != null)
     {
         A_0.Format.TableStyleParagraphFormat = A_1;
         A_0.BreakCharacterFormat.TableStyleCharacterFormat = A_2;
         foreach (ParagraphBase base2 in A_0.Items)
         {
             base2.CharacterFormat.TableStyleCharacterFormat = A_2;
         }
     }
 }
コード例 #17
0
 public SDTProperties(DocumentObject owner)
 {
     this.documentObject_0  = owner;
     this.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(this.documentObject_0.Document);
 }