PDFANNOTATION_BorderColor
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the color of the borders of the current annotation.

Syntax

OLE_COLOR PDFANNOTATION_BorderColor { get; set; }
Value
Border color of the current annotation

Remarks

This property sets the color for the border of the active annotation. The OLE_COLOR type contains the value of any RGB color.

Equivalent in new interface: IPDFDocument4::AnnotBorderColor.

Example

Creating an Edit Box

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_Edit('edt1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Text := 'Text';
PDF.PDFANNOTATION_BorderColor := 255; { red }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_Edit("edt1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Text = "Text";
PDF->PDFANNOTATION_BorderColor = 255; // red
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_Edit("edt1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Text = "Text";
PDF.PDFANNOTATION_BorderColor = 255; // red
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_CreateControl_Edit "edt1", 10, 10, 110, 23
PDF.PDFANNOTATION_Text = "Text"
PDF.PDFANNOTATION_BorderColor = 255 ' red
PDF.EndDoc

See Also

Reference