[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Border

Class Border

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a border of an object.

public class Border : FormattingBag
Inheritance
object
Border
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Color

Gets or sets the border color.

public WordColor Color { get; }

Property Value

WordColor

FrameEffect

Gets or sets a value indicating whether the specified border should be modified to create a frame effect by reversing the border's appearance from the edge nearest the text to the edge furthest from the text.

public bool FrameEffect { get; set; }

Property Value

bool

LineStyle

Gets or sets the line style.

public LineStyle LineStyle { get; set; }

Property Value

LineStyle

Remarks

If you set the line style to none, the line width is automatically changed to zero. This border can either be an art border (a repeated image along the borders shall only be used for page borders) or a line border (a line format repeated along the borders).

LineWidth

Gets or sets the border width in points.

public float LineWidth { get; set; }

Property Value

float

Remarks

If you set line width greater than zero when line style is none, the line style is automatically changed to single line.

Shadow

Gets or sets a value indicating whether the border has a shadow.

public bool Shadow { get; set; }

Property Value

bool

Remarks

In Microsoft Word, for a border to have a shadow, the borders on all four sides should be of the same type, width, color and all should have the Shadow property set to true.

Space

Gets or sets the distance of the border from text or from the page edge in points.

Has no effect and will be automatically reset to zero for borders of table cells.

public uint Space { get; set; }

Property Value

uint

Visible

Gets or sets a value indicating whether the border is visible.

If set to false, the the line style is is automatically changed to LineStyle.None.

public bool Visible { get; set; }

Property Value

bool

Methods

ClearFormatting()

Resets border properties to default values.

public override void ClearFormatting()