menu

WinForms

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

    Show / Hide Table of Contents

    Class DrawUserMarginTextEventArgs

    Provides data for the DrawUserMarginText event of the EditControl control.

    Inheritance
    System.Object
    System.EventArgs
    DrawUserMarginTextEventArgs
    Inherited Members
    System.EventArgs.Empty
    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.Edit
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class DrawUserMarginTextEventArgs : EventArgs

    Constructors

    DrawUserMarginTextEventArgs(Graphics, Rectangle, ILexemLine, Font, Color)

    Initializes a new instance of the DrawUserMarginTextEventArgs class.

    Declaration
    public DrawUserMarginTextEventArgs(Graphics g, Rectangle rect, ILexemLine line, Font font, Color color)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics object to draw text on.

    System.Drawing.Rectangle rect

    Rectangle of allowed text area.

    ILexemLine line

    Corresponding editor line.

    System.Drawing.Font font

    Font of text.

    System.Drawing.Color color

    Color of text.

    Properties

    Color

    Gets or sets the text color.

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

    CustomDraw

    Gets or sets a value indicating whether user draws text itself.

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

    Font

    Gets or sets the text font.

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

    Graphics

    Gets graphics object to draw text on.

    Declaration
    public Graphics Graphics { get; }
    Property Value
    Type
    System.Drawing.Graphics

    Line

    Gets corresponding editor line.

    Declaration
    public ILexemLine Line { get; }
    Property Value
    Type
    ILexemLine

    Rect

    Gets rectangle of allowed text area.

    Declaration
    public Rectangle Rect { get; }
    Property Value
    Type
    System.Drawing.Rectangle

    Text

    Gets or sets the text of UserMargin.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved