officefileapi-devexpress-dot-pdf-dot-pdfannotationdata.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 snippets (auto-collected from DevExpress Examples) contain references 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-manage-annotations-in-document/CS/CreateMarkupAnnotation/Program.cs#L43
textMarkupAnnotation.Contents = "Please, fact-check this diagram";
textMarkupAnnotation.Color = new PdfRGBColor(0.10, 0.85, 1.00);
AddAnnotationComments(textMarkupAnnotation);
pdf-document-api-highlight-search-results/CS/HighlightSearchResults/Program.cs#L65
{
annotation.Color = new PdfRGBColor(0.2, 0.6, 0);
}
pdf-document-api-manage-annotations-in-document/VB/CreateMarkupAnnotation/Program.vb#L33
textMarkupAnnotation.Contents = "Please, fact-check this diagram"
textMarkupAnnotation.Color = New PdfRGBColor(0.10, 0.85, 1.00)
AddAnnotationComments(textMarkupAnnotation)
pdf-document-api-highlight-search-results/VB/HighlightSearchResults/Program.vb#L52
If annotation IsNot Nothing Then
annotation.Color = New PdfRGBColor(0.2, 0.6, 0)
End If
See Also