Back to Devexpress

IPdfViewerAnnotationBuilder.Color Property

officefileapi-devexpress-dot-pdf-dot-ipdfviewerannotationbuilder-515e157f.md

latest2.4 KB
Original Source

IPdfViewerAnnotationBuilder.Color Property

Specifies the annotation’s color.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Drawing

Declaration

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

Property Value

TypeDescription
PdfRGBColor

The markup 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.

wpf-pdf-viewer-create-text-markup-annotation-and-specify-its-properties/CS/MarkupAnnotations/MainWindow.xaml.cs#L31

csharp
annotationBuilder.Contents = "Note";
    annotationBuilder.Color = new PdfRGBColor(0.23, 0.48, 0.34);
}

wpf-pdf-viewer-create-text-markup-annotation-and-specify-its-properties/VB/MarkupAnnotations/MainWindow.xaml.vb#L24

vb
annotationBuilder.Contents = "Note"
    annotationBuilder.Color = New PdfRGBColor(0.23, 0.48, 0.34)
End If

See Also

IPdfViewerAnnotationBuilder Interface

IPdfViewerAnnotationBuilder Members

DevExpress.Pdf Namespace