Back to Devexpress

CustomDrawCommentIndicatorEventArgs.Size Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-customdrawcommentindicatoreventargs-8d47d975.md

latest1.9 KB
Original Source

CustomDrawCommentIndicatorEventArgs.Size Property

Gets or sets the size of the default comment indicator in units of measurement that are currently in effect.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public int Size { get; set; }
vb
Public Property Size As Integer

Property Value

TypeDescription
Int32

A comment indicator’s size.

|

Remarks

The code snippet below shows how to change the default comment indicator’s size and color.

csharp
spreadsheetControl1.CustomDrawCommentIndicator += (s, e) => {
    e.Size = 10;
    e.ForeColor = Color.FromArgb(0x21, 0x73, 0x46);
};
vb
AddHandler SpreadsheetControl1.CustomDrawCommentIndicator,
    Sub(s, e)
        e.Size = 10
        e.ForeColor = Color.FromArgb(&H21, &H73, &H46)
    End Sub

See Also

CustomDrawCommentIndicatorEventArgs Class

CustomDrawCommentIndicatorEventArgs Members

DevExpress.XtraSpreadsheet Namespace