예제 #1
0
    private double method_11()
    {
        Table table = this.method_13().method_8();

        if (table.FirstNonMarkupDescendant.DocumentObjectType == DocumentObjectType.TableCell)
        {
            TableCell  firstNonMarkupDescendant = (TableCell)this.method_13().method_8().FirstNonMarkupDescendant;
            CellFormat cellFormat = firstNonMarkupDescendant.CellFormat;
            return((double)((cellFormat.CellWidth - cellFormat.Paddings.Left) - cellFormat.Paddings.Right));
        }
        Section section = (Section)table.method_6(DocumentObjectType.Section);

        while (section.BreakCode != SectionBreakType.NewPage)
        {
            if (section.PreviousSibling == null)
            {
                break;
            }
            DocumentObject previousSibling = (DocumentObject)section.PreviousSibling;
            if ((previousSibling != null) && (previousSibling is Section))
            {
                section = (Section)previousSibling;
            }
        }
        PageSetup pageSetup = section.PageSetup;
        double    left      = Class576.smethod_48(3.0);

        if (section.SectPr.HasValue(0x8e8))
        {
            left = pageSetup.Margins.Left;
        }
        double right = Class576.smethod_48(1.499);

        if (section.SectPr.HasValue(0x8f2))
        {
            right = pageSetup.Margins.Right;
        }
        return((pageSetup.PageSize.Width - left) - right);
    }