Beispiel #1
0
 public PdfAngledBox(PdfRect rect, PdfAngle angle, PdfAlign v_align, PdfBorder borders = null, PdfBoxLayout box_layout = null)
     : base(borders, box_layout)
 {
     Rectangle = rect;
     Angle     = angle;
     VAlign    = v_align;
 }
Beispiel #2
0
        public void PdfExport()
        {
            var ExportProperties = new PdfExportProperties();
            var Theme            = new PdfTheme();

            var HeaderBorder = new PdfBorder
            {
                Color = "#64FA50"
            };

            var HeaderThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17,
                Bold      = true,
                Border    = HeaderBorder
            };

            Theme.Header = HeaderThemeStyle;

            var RecordThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17
            };

            Theme.Record = RecordThemeStyle;

            var CaptionThemeStyle = new PdfThemeStyle()
            {
                FontColor = "#64FA50",
                FontName  = "Calibri",
                FontSize  = 17,
                Bold      = true
            };

            Theme.Caption = CaptionThemeStyle;

            ExportProperties.Theme = Theme;

            DefaultGrid.PdfExport(ExportProperties);
        }
Beispiel #3
0
 public PdfAutoBox(PdfRect rectangle, PdfAlign v_align, PdfBorder borders = null, PdfBoxLayout box_layout = null)
     : this(rectangle.UpperLeft, PdfGrow.None, v_align, rectangle.Area, null, borders, box_layout)
 {
 }
Beispiel #4
0
 public PdfAutoBox(PdfXY upper_left, PdfGrow grow_direction, PdfArea area = null, PdfArea max_area = null, PdfBorder borders = null, PdfBoxLayout box_layout = null)
     : this(upper_left, grow_direction, PdfAlign.Far, area ?? new PdfArea(0, 0), max_area, borders, box_layout)
 {
 }
Beispiel #5
0
 public PdfAutoBox(PdfXY upper_left, PdfGrow grow_direction, PdfAlign v_align, PdfArea area, PdfArea max_area = null, PdfBorder borders = null, PdfBoxLayout box_layout = null)
     : base(borders, box_layout)
 {
     UpperLeft     = upper_left;
     GrowDirection = grow_direction;
     VAlign        = v_align;
     Area          = area;
     MaxArea       = max_area ?? new PdfArea(max_box_size, max_box_size);
 }
Beispiel #6
0
 public PdfOuterBox(PdfBorder borders = null, PdfBoxLayout box_layout = null)
     : base(borders, box_layout)
 {
 }
Beispiel #7
0
 public PdfBox(PdfBorder borders, PdfBoxLayout box_layout)
 {
     BoxLayout = box_layout;
     Borders   = borders ?? new PdfBorder(0, 0);
 }