internal virtual void Initialize(GdiContext context, RPLItemMeasurement measurement, RectangleF bounds, string accessibleName) { Initialize(measurement.Element); m_accessibleName = accessibleName; m_zIndex = measurement.ZIndex; m_state = measurement.State; m_position = GdiContext.GetMeasurementRectangle(measurement, bounds); if (!string.IsNullOrEmpty(Label)) { context.RenderingReport.Labels.Add(InstanceProperties.UniqueName, new LabelPoint(base.Position.Location)); } if (!string.IsNullOrEmpty(Bookmark)) { context.RenderingReport.Bookmarks.Add(InstanceProperties.UniqueName, new BookmarkPoint(base.Position.Location)); } if (!string.IsNullOrEmpty(ToolTip)) { context.RenderingReport.ToolTips.Add(new ReportToolTip(InstanceProperties.UniqueName, base.Position, ToolTip)); } ProcessRenderingElementContent(measurement.Element, context, base.Position); ProcessBackgroundColorAndImage(context, InstanceProperties); if (!(this is RenderingLine)) { ProcessBorders(context.GdiWriter, InstanceProperties as RPLItemProps, bounds, m_state); } if (!(InstanceProperties is RPLTextBoxProps)) { InstanceProperties.NonSharedStyle = null; } }
internal void Initialize(RPLTextBox rplTextBox, RectangleF bounds) { base.Initialize(rplTextBox); m_paragraphNumber = 1; m_isSimple = true; m_position = GdiContext.GetMeasurementRectangle(null, bounds); }
internal void Initialize(RPLParagraph rplParagraph, RectangleF bounds) { base.Initialize(rplParagraph); m_paragraphNumber = (InstanceProperties as RPLParagraphProps).ParagraphNumber; m_isSimple = false; m_position = GdiContext.GetMeasurementRectangle(null, bounds); }
internal void Initialize(RPLElement rplElement, RectangleF bounds, int indexInParagraph) { Initialize(rplElement); m_indexInParagraph = indexInParagraph; m_position = GdiContext.GetMeasurementRectangle(null, bounds); }