internal BoxElement AddBoxElement(RdlEngine.ReportElement reportElement, RdlEngine.Style style) { BoxElement child = new BoxElement(this, reportElement, new BoxStyle(style)); _childElements.Add(child); return(child); }
public BoxStyle(RdlEngine.Style style) { if (style == null) { style = RdlEngine.Style.DefaultStyle; } BorderColor = new BorderColor(style.BorderColor); BorderStyle = new BorderStyle(style.BorderStyle); BorderWidth = new BorderWidth(style.BorderWidth); BackgroundColor = style.BackgroundColor; BackgroundGradientType = style.BackgroundGradientType; BackgroundGradientEndColor = style.BackgroundGradientEndColor; BackgroundImage = style.BackgroundImage.Value; BackgroundImageType = style.BackgroundImage.MIMEType; Color = style.Color; PaddingLeft = style.PaddingLeft; PaddingRight = style.PaddingRight; PaddingTop = style.PaddingTop; PaddingBottom = style.PaddingBottom; }
public TextStyle(RdlEngine.Style style) : base(style) { if (style == null) { style = RdlEngine.Style.DefaultStyle; } FontStyle = style.FontStyle; FontFamily = style.FontFamily; FontSize = style.FontSize; FontWeight = style.FontWeight; Format = style.Format; TextDecoration = style.TextDecoration; TextAlign = style.TextAlign; VerticalAlign = style.VerticalAlign; LineHeight = style.LineHeight; Direction = style.Direction; WritingMode = style.WritingMode; Language = style.Language; UnicodeBiDi = style.UnicodeBiDi; Calendar = style.Calendar; NumeralLanguage = style.NumeralLanguage; NumeralVariant = style.NumeralVariant; }
internal TextElement AddTextElement(RdlEngine.ReportElement reportElement, string name, string text, RdlEngine.Style style) { TextElement child = new TextElement(this, reportElement, name, text, new TextStyle(style)); _childElements.Add(child); return(child); }
internal FlowContainer AddFlowContainer(RdlEngine.ReportElement reportElement, RdlEngine.Style style) { FlowContainer child = new FlowContainer(this, reportElement, new BoxStyle(style)); _childElements.Add(child); return(child); }