RadPrintElement
Defines reusable text, image, fill, border, and transform settings for drawing a printed element.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPrintElement
Inheritance: objectRadPrintElement
Derived Classes:
Constructors
Initializes a print element with centered text alignment, a white background, a black border, and the default system font.
public RadPrintElement()
Initializes a print element with the supplied text and the default drawing settings.
Properties
Gets or sets the rotation angle of the element.
public float AngleTransform { get; set; }
Gets or sets the back color of the element.
public Color BorderColor { get; set; }
Gets or sets whether a border should be drawn.
public bool DrawBorder { get; set; }
Gets or sets a value indicating whether the text should be drawn.
public bool DrawText { get; set; }
Gets or sets a value indicating whether html text will be interpreted or will be printed directly.
public bool EnableHtmlTextRendering { get; set; }
Gets or sets the image alignment
public ContentAlignment ImageAlignment { get; set; }
Gets or sets the image layout.
public ImageLayout ImageLayout { get; set; }
Represents a series of points that will define the shape of the element.
public PointF[] Polygon { get; set; }
Gets or sets whether the cell is right to left.
public bool RightToLeft { get; set; }
Gets or sets the scale factors of the element.
public SizeF ScaleTransform { get; set; }
Gets or sets the string format flags.
public StringFormatFlags StringFormatFlags { get; set; }
Gets or sets the string trimming mode.
public StringTrimming StringTrimming { get; set; }
Gets or sets the text alignment of the element.
public ContentAlignment TextAlignment { get; set; }
Gets or sets the padding arround the text.
public Padding TextPadding { get; set; }
Methods
Maps the horizontal component of a ContentAlignment value to a drawing alignment.
public virtual StringAlignment GetHorizontalAlignment(ContentAlignment alignment)
The content alignment to inspect.
Returns:Returns the bounds after applying the element's configured scale and rotation transforms.
public RectangleF GetTransformedBounds(RectangleF bounds)
The untransformed element bounds.
Returns:The transformed bounds.
Maps the vertical component of a ContentAlignment value to a drawing alignment.
public virtual StringAlignment GetVerticalAlignment(ContentAlignment alignment)
The content alignment to inspect.
Returns:Draws the element using the Graphics object in the given rectangle.
public void Paint(Graphics g, RectangleF rect)
The graphics object used for the drawing.
rectRectangleFThe draw area.
Draws the border when DrawBorder is enabled, following Polygon when it has at least three points.
Draws the border when DrawBorder is enabled, following Polygon when it has at least three points.
protected virtual void PaintBorder(Graphics g, RectangleF rect)
The graphics surface used for drawing.
rectRectangleFThe rectangular fallback bounds.
Draws the element layers in fill, image, border, then text order. Override to change the composition for floating-point bounds.
protected virtual void PaintElement(Graphics g, RectangleF rect)
The graphics surface used for drawing.
rectRectangleFThe element bounds.
protected virtual void PaintFill(Graphics g, RectangleF rect)
The graphics surface used for drawing.
rectRectangleFThe rectangular fallback bounds.
Draws the configured Image within the bounds using ImageLayout; ImageAlignment is used for None.
Draws the configured Image within the bounds using ImageLayout; ImageAlignment is used for None.
protected virtual void PaintImage(Graphics g, RectangleF rect)
The graphics surface used for drawing.
rectRectangleFThe image bounds.
Draws enabled, non-empty text using the configured padding and alignment, with optional HTML rendering. The configured trimming and format flags apply to non-HTML text.
protected virtual void PaintText(Graphics g, RectangleF rect)
The graphics surface used for drawing.
rectRectangleFThe text bounds.