SingleBorder Struct
Represents a single border around a document element.
Implements
Remarks
Single
Constructors
SingleBorder(BorderStyle, Color, Double)
Initializes a new instance of the Single
Parameters
style
- Border
Style
The border style.
color
- Color
The border color.
width
- System.
Double
The border width in points.
Fields
None
Value that represents that there is no border.
Field Value
Properties
Color
Gets the border color.
Property Value
The border color.
Space
Gets the spacing offset (in points) that shall be used to place this border on the parent object. Supported in DOCX and DOC formats. Supported in PDF format on Page
When a document has a page border that is relative to the page edges (using a value of true in the Measure
When a document has a page border that is relative to the text extents (using a value of true in the Measure
Property Value
- System.
Double
The spacing offset that shall be used to place this border on the parent object.
Remarks
This value is currently ignored when exporting a document to PDF, XPS, or image formats if specified on a non-page or a non-paragraph border.
Style
Gets the border style.
Property Value
The border style.
Width
Gets the border width in points.
Property Value
- System.
Double
The border width in points.
Methods
Equals(SingleBorder)
Determines whether the other
Single
Parameters
other
- Single
Border
The other border to compare with this border instance.
Returns
- System.
Boolean
true if the other
Single
Equals(Object)
Determines whether the specified System.
Parameters
obj
- System.
Object
The System.
Returns
- System.
Boolean
true if the specified System.
Overrides
GetHashCode()
Returns a hash code for this Single
Returns
- System.
Int32
An integer value that specifies a hash value for this Single
Overrides
ToString()
Returns a System.
Returns
- System.
String
A System.
Overrides
Operators
Equality(SingleBorder, SingleBorder)
Determines whether first
and second
Single
Parameters
first
- Single
Border
The first border.
second
- Single
Border
The second border.
Returns
- System.
Boolean
true if first
and second
borders are equal; otherwise, false.
Inequality(SingleBorder, SingleBorder)
Determines whether first
and second
Single
Parameters
first
- Single
Border
The first border.
second
- Single
Border
The second border.
Returns
- System.
Boolean
true if first
and second
borders are not equal; otherwise, false.