Back to Devexpress

PdfAnnotationData.Color Property

officefileapi-devexpress-dot-pdf-dot-pdfannotationdata.md

latest3.0 KB
Original Source

PdfAnnotationData.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 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

csharp
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

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

pdf-document-api-manage-annotations-in-document/VB/CreateMarkupAnnotation/Program.vb#L33

vb
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

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

See Also

PdfAnnotationData Class

PdfAnnotationData Members

DevExpress.Pdf Namespace