menu

WinForms

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

    Show / Hide Table of Contents

    Class LineInfo

    Inheritance
    System.Object
    LineInfo
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
    Syntax
    public class LineInfo : DependencyObject

    Constructors

    LineInfo()

    Initializes the new instance of LineInfo class

    Declaration
    public LineInfo()

    LineInfo(LineInfo)

    Initializes the new instance of LineInfo class

    Declaration
    public LineInfo(LineInfo lineInfo)
    Parameters
    Type Name Description
    LineInfo lineInfo

    Fields

    BoundingRectangleProperty

    Registers the bounding rectangle property

    Declaration
    public static readonly DependencyProperty BoundingRectangleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Offset

    Declaration
    public double Offset
    Field Value
    Type
    System.Double

    Properties

    BoundingRectangle

    Gets or Sets the bounding rectangle property

    Declaration
    public Rect BoundingRectangle { get; set; }
    Property Value
    Type
    System.Windows.Rect

    ElementBoxes

    Gets or Sets the element boxes

    Declaration
    public List<ElementBox> ElementBoxes { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<ElementBox>

    Height

    Gets or Sets the height of the line

    Declaration
    public double Height { get; set; }
    Property Value
    Type
    System.Double

    Location

    Gets the location of the current line

    Declaration
    public Point Location { get; }
    Property Value
    Type
    System.Windows.Point

    Width

    Gets or Sets the width of the line

    Declaration
    public double Width { get; set; }
    Property Value
    Type
    System.Double

    Methods

    Add(Rect)

    Adds the specified rectangle to the bounding rectangle

    Declaration
    public void Add(Rect rect)
    Parameters
    Type Name Description
    System.Windows.Rect rect

    DrawLine(Int32, Int32, Int32, Int32, Color)

    Declaration
    public void DrawLine(int x1, int y1, int x2, int y2, Color color)
    Parameters
    Type Name Description
    System.Int32 x1
    System.Int32 y1
    System.Int32 x2
    System.Int32 y2
    System.Windows.Media.Color color

    DrawRectangle(Rect, Color)

    Declaration
    public void DrawRectangle(Rect rect, Color color)
    Parameters
    Type Name Description
    System.Windows.Rect rect
    System.Windows.Media.Color color

    DrawText(Point)

    Declaration
    public void DrawText(Point point)
    Parameters
    Type Name Description
    System.Windows.Point point

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved