menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextElement - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TextElement

    Implements the "text" element of SVG DOM.

    Inheritance
    System.Object
    Element
    SuperElement
    TextElement
    Implements
    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Inherited Members
    Element.AddChild(Element)
    Element.Attributes
    Element.CanAddChild(Element)
    Element.Children
    Element.GetAttribute(Object, Object)
    Element.Id
    Element.Name
    Element.OwnerDocument
    Element.Parent
    Element.SetAttribute(Object, Object, Object)
    Element.Text
    Element.WriteXmlAttributes(XmlWriter)
    SuperElement.Draw(Graphics)
    SuperElement.IClipingAttribute.ClipPath
    SuperElement.IClipingAttribute.ClipRule
    SuperElement.IFillAttributes.Fill
    SuperElement.IFillAttributes.FillOpacity
    SuperElement.IFontAttributes.Font
    SuperElement.IFontAttributes.FontFamily
    SuperElement.IFontAttributes.FontSize
    SuperElement.IFontAttributes.FontSizeAdjust
    SuperElement.IFontAttributes.FontStretch
    SuperElement.IFontAttributes.FontStyle
    SuperElement.IFontAttributes.FontVariant
    SuperElement.IFontAttributes.FontWeight
    SuperElement.IOpacityAttribute.Opacity
    SuperElement.IStrokeAttributes.Stroke
    SuperElement.IStrokeAttributes.StrokeDasharray
    SuperElement.IStrokeAttributes.StrokeDashoffset
    SuperElement.IStrokeAttributes.StrokeLinecap
    SuperElement.IStrokeAttributes.StrokeLinejoin
    SuperElement.IStrokeAttributes.StrokeMiterlimit
    SuperElement.IStrokeAttributes.StrokeOpacity
    SuperElement.IStrokeAttributes.StrokeWidth
    SuperElement.ITransformAttribute.Transform
    SuperElement.IViewBoxAttribute.ViewBox
    SuperElement.SetXmlAttribute(XmlAttribute)
    SuperElement.Style
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public sealed class TextElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute

    Constructors

    TextElement()

    Initializes a new instance of the TextElement class.

    Declaration
    public TextElement()

    Properties

    DX

    Gets or sets the DX.

    Declaration
    public Length DX { get; set; }
    Property Value
    Type Description
    Length

    The DX.

    DY

    Gets or sets the DY.

    Declaration
    public Length DY { get; set; }
    Property Value
    Type Description
    Length

    The DY.

    LengthAdjust

    Gets or sets the length adjust.

    Declaration
    public ELengthAdjust LengthAdjust { get; set; }
    Property Value
    Type Description
    ELengthAdjust

    The length adjust.

    Rotate

    Gets or sets the angle of rotatation.

    Declaration
    public Number Rotate { get; set; }
    Property Value
    Type Description
    Number

    The angle.

    TextLength

    Gets or sets the length of the text.

    Declaration
    public Length TextLength { get; set; }
    Property Value
    Type Description
    Length

    The length of the text.

    X

    Gets or sets the X coordinate of text.

    Declaration
    public Length X { get; set; }
    Property Value
    Type Description
    Length

    The X coordinate .

    Y

    Gets or sets the Y coordinate of text.

    Declaration
    public Length Y { get; set; }
    Property Value
    Type Description
    Length

    The Y coordinate.

    Methods

    DrawSelf(Graphics)

    Draws the element to specified System.Drawing.Graphics.

    Declaration
    protected override void DrawSelf(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics.

    Overrides
    SuperElement.DrawSelf(Graphics)

    Implements

    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved