Back to Devexpress

PdfAnnotationFacade.Color Property

officefileapi-devexpress-dot-pdf-dot-pdfannotationfacade-4e109fe4.md

latest2.1 KB
Original Source

PdfAnnotationFacade.Color Property

Specifies the annotation color.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfRGBColor Color { get; set; }
vb
Public Property Color As PdfRGBColor

Property Value

TypeDescription
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

csharp
{
    annotation.Color = new PdfRGBColor(0.2, 0.6, 0);
}

pdf-document-api-highlight-search-results/VB/HighlightSearchResults/Program.vb#L59

vb
If annotation IsNot Nothing Then
    annotation.Color = New PdfRGBColor(0.2, 0.6, 0)
End If

See Also

PdfAnnotationFacade Class

PdfAnnotationFacade Members

DevExpress.Pdf Namespace