skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadPrintElement

Inheritance
System.Object
RadPrintElement
AppointmentPrintElement
CalendarPrintElement
CellPrintElement
GanttViewPrintElement
NotesAreaPrintElement
PivotCellPrintElement
PivotFieldPrintElement
PivotGroupPrintElement
SchedulerPrintCellElement
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class RadPrintElement

Constructors

RadPrintElement()

Declaration
public RadPrintElement()

RadPrintElement(String)

Declaration
public RadPrintElement(string text)
Parameters
System.String text

Properties

AngleTransform

Gets or sets the rotation angle of the element.

Declaration
public float AngleTransform { get; set; }
Property Value
System.Single

BackColor

Gets or sets the back color of the element.

Declaration
public Color BackColor { get; set; }
Property Value
System.Drawing.Color

BorderColor

Gets or sets the back color of the element.

Declaration
public Color BorderColor { get; set; }
Property Value
System.Drawing.Color

DrawBorder

Gets or sets whether a border should be drawn.

Declaration
public bool DrawBorder { get; set; }
Property Value
System.Boolean

DrawFill

Gets or sets whether a fill should be drawn.

Declaration
public bool DrawFill { get; set; }
Property Value
System.Boolean

DrawText

Gets or sets a value indicating whether the text should be drawn.

Declaration
public bool DrawText { get; set; }
Property Value
System.Boolean

EnableHtmlTextRendering

Gets or sets a value indicating whether html text will be interpreted or will be printed directly.

Declaration
public bool EnableHtmlTextRendering { get; set; }
Property Value
System.Boolean

Font

Gets or sets the font used for drawing the text.

Declaration
public Font Font { get; set; }
Property Value
System.Drawing.Font

ForeColor

Gets or sets the fore color of the element.

Declaration
public Color ForeColor { get; set; }
Property Value
System.Drawing.Color

Image

Gets or sets the image of the element.

Declaration
public Image Image { get; set; }
Property Value
System.Drawing.Image

ImageAlignment

Gets or sets the image alignment

Declaration
public ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

ImageLayout

Gets or sets the image layout.

Declaration
public ImageLayout ImageLayout { get; set; }
Property Value
System.Windows.Forms.ImageLayout

Polygon

Represents a series of points that will define the shape of the element.

Declaration
public PointF[] Polygon { get; set; }
Property Value
System.Drawing.PointF[]

RightToLeft

Gets or sets whether the cell is right to left.

Declaration
public bool RightToLeft { get; set; }
Property Value
System.Boolean

ScaleTransform

Gets or sets the scale factors of the element.

Declaration
public SizeF ScaleTransform { get; set; }
Property Value
System.Drawing.SizeF

StringFormatFlags

Gets or sets the string format flags.

Declaration
public StringFormatFlags StringFormatFlags { get; set; }
Property Value
System.Drawing.StringFormatFlags

StringTrimming

Gets or sets the string trimming mode.

Declaration
public StringTrimming StringTrimming { get; set; }
Property Value
System.Drawing.StringTrimming

Text

Gets or sets the text to be drawn.

Declaration
public virtual string Text { get; set; }
Property Value
System.String

TextAlignment

Gets or sets the text alignment of the element.

Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

TextPadding

Gets or sets the padding arround the text.

Declaration
public Padding TextPadding { get; set; }
Property Value
System.Windows.Forms.Padding

Methods

GetHorizontalAlignment(ContentAlignment)

Declaration
public virtual StringAlignment GetHorizontalAlignment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment alignment

Returns
System.Drawing.StringAlignment

GetTransformedBounds(RectangleF)

Declaration
public RectangleF GetTransformedBounds(RectangleF bounds)
Parameters
System.Drawing.RectangleF bounds

Returns
System.Drawing.RectangleF

GetVerticalAlignment(ContentAlignment)

Declaration
public virtual StringAlignment GetVerticalAlignment(ContentAlignment alignment)
Parameters
System.Drawing.ContentAlignment alignment

Returns
System.Drawing.StringAlignment

Paint(Graphics, Rectangle)

Draws the element using the System.Drawing.Graphics object in the given rectangle.

Declaration
public void Paint(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

The graphics object used for the drawing.

System.Drawing.Rectangle rect

The draw area.

Paint(Graphics, RectangleF)

Draws the element using the System.Drawing.Graphics object in the given rectangle.

Declaration
public void Paint(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

The graphics object used for the drawing.

System.Drawing.RectangleF rect

The draw area.

PaintBorder(Graphics, Rectangle)

Declaration
protected virtual void PaintBorder(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle rect

PaintBorder(Graphics, RectangleF)

Declaration
protected virtual void PaintBorder(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF rect

PaintElement(Graphics, Rectangle)

Declaration
protected virtual void PaintElement(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle rect

PaintElement(Graphics, RectangleF)

Declaration
protected virtual void PaintElement(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF rect

PaintFill(Graphics, Rectangle)

Declaration
protected virtual void PaintFill(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle rect

PaintFill(Graphics, RectangleF)

Declaration
protected virtual void PaintFill(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF rect

PaintImage(Graphics, Rectangle)

Declaration
protected virtual void PaintImage(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle rect

PaintImage(Graphics, RectangleF)

Declaration
protected virtual void PaintImage(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF rect

PaintText(Graphics, Rectangle)

Declaration
protected virtual void PaintText(Graphics g, Rectangle rect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle rect

PaintText(Graphics, RectangleF)

Declaration
protected virtual void PaintText(Graphics g, RectangleF rect)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF rect

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.