AnnotBorder
From PDF XChange PDF SDK
(Label ToWrite removed) |
(→Options Table) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
{| class="op_internal_table" | {| class="op_internal_table" | ||
|- | |- | ||
− | | class="op_enum_value" | '''0''' (Solid) || A solid border surrounding the annotation | + | | class="op_enum_value" | '''0''' (Solid) || A solid border surrounding the annotation. |
|- | |- | ||
− | | class="op_enum_value" | '''1''' (Dashed) || A dashed rectangle surrounding the annotation. The dash | + | | class="op_enum_value" | '''1''' (Dashed) || A dashed rectangle surrounding the annotation. The dash pattern may be specified by the '''D''' entry. |
− | pattern may be specified by the '''D''' entry. | + | |
|- | |- | ||
− | | class="op_enum_value" | '''2''' ( | + | | class="op_enum_value" | '''2''' (Beveled) || A simulated embossed rectangle that appears to be raised above the surface of the page. |
|- | |- | ||
| class="op_enum_value" | '''3''' (Inset) || A simulated engraved rectangle that appears to be recessed below the surface of the page. | | class="op_enum_value" | '''3''' (Inset) || A simulated engraved rectangle that appears to be recessed below the surface of the page. | ||
Line 58: | Line 57: | ||
Specifies the dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border. | Specifies the dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border. | ||
|} | |} | ||
+ | |||
+ | == Sample == | ||
+ | <pre class="brush:c#">//C# | ||
+ | var border = new PDFXEdit.PXC_AnnotBorder(); | ||
+ | border.nStyle = PDFXEdit.PXC_AnnotBorderStyle.ABS_Dashed; | ||
+ | border.nWidth = 4.0f; | ||
+ | border.DashArray = new float[10]; | ||
+ | border.DashArray[0] = border.DashArray[1] = 16.0f; //Width of dashes | ||
+ | border.nDashCount = 2; //Number of dashes | ||
+ | </pre> | ||
== See Also == | == See Also == | ||
[[PXV:op_annots_setProps]] | [[PXV:op_annots_setProps]] |
Latest revision as of 05:27, 1 March 2016
Options Table
Name | Type | Value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
S | Integer | Specifies the annotation's border style
Possible values are:
Default value: 0 (Solid) | ||||||||||
E | Integer | Specifies the annotation's border style effect
Possible values are:
Default value: 0 (Solid) | ||||||||||
EL | Double | Specifies the effect level.
Default value: 1.0 | ||||||||||
W | Double | Specifies the border width.
Default value: 1.0 | ||||||||||
D | Array | Array of Double
Specifies the dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border. |
Sample
//C# var border = new PDFXEdit.PXC_AnnotBorder(); border.nStyle = PDFXEdit.PXC_AnnotBorderStyle.ABS_Dashed; border.nWidth = 4.0f; border.DashArray = new float[10]; border.DashArray[0] = border.DashArray[1] = 16.0f; //Width of dashes border.nDashCount = 2; //Number of dashes