officefileapi-devexpress-dot-pdf-dot-pdfannotationfacade-4e109fe4.md
Specifies the annotation color.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public PdfRGBColor Color { get; set; }
Public Property Color As PdfRGBColor
| Type | Description |
|---|---|
| PdfRGBColor |
The annotation color.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Color property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-highlight-search-results/CS/HighlightSearchResults/Program.cs#L71
{
annotation.Color = new PdfRGBColor(0.2, 0.6, 0);
}
pdf-document-api-highlight-search-results/VB/HighlightSearchResults/Program.vb#L59
If annotation IsNot Nothing Then
annotation.Color = New PdfRGBColor(0.2, 0.6, 0)
End If
See Also