public override PrintableComponent Clone() { TextComponent tc = new TextComponent(Left, Top, Width, Height, Angle) { BindingOption = this.BindingOption, DataBindingSource = this.DataBindingSource }; tc.Style = this.Style.Clone(); return(tc); }
public IndexComponent(double left, double top, double width, double height, double angle, PrintableStyle ps) : base(left, top, width, height, angle) { PrintableStyle leftStyle = ps.Clone(); leftStyle.FontAlignment = PdfSharp.Drawing.Layout.XParagraphAlignment.Left; PrintableStyle rightStyle = ps.Clone(); rightStyle.FontAlignment = PdfSharp.Drawing.Layout.XParagraphAlignment.Right; leftTextComponent = new TextComponent(left, top, width, height, angle) { Style = leftStyle }; rightTextComponent = new TextComponent(left, top, width, height, angle) { Style = rightStyle }; }
public static IndexComponent FromTextComponent(TextComponent tc) { return(new IndexComponent(tc.Left, tc.Top, tc.Width, tc.Height, tc.Angle, tc.Style)); }