Skip to main content
All docs
V26.1
  • CustomDrawCommentIndicatorEventArgs.ForeColor Property

    Gets or sets the color of the default comment indicator.

    Namespace: DevExpress.XtraSpreadsheet

    Assembly: DevExpress.XtraSpreadsheet.v26.1.dll

    NuGet Package: DevExpress.Win.Spreadsheet

    Declaration

    public Color ForeColor { get; set; }

    Property Value

    Type Description
    Color

    Specifies a comment indicator’s color.

    Remarks

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

    Custom_Comment_Indicator

    spreadsheetControl1.CustomDrawCommentIndicator += (s, e) => {
        e.Size = 10;
        e.ForeColor = Color.FromArgb(0x21, 0x73, 0x46);
    };
    
    See Also