Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawCommentIndicatorEventArgs.ForeColor Property

Gets or sets the color of the default comment indicator.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v24.2.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