Border

Overview

Border is a class in Aspose.Words FOSS for .NET. Inherits from: InternableComplexAttr, IComplexAttr.

Represents a border of an object.

This class provides 4 methods for working with Border objects in .NET programs. Available methods include: ClearFormatting, Equals, GetHashCode. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Color, DistanceFromText, IsVisible, LineStyle, LineWidth, Shadow, and 2 more.

Properties

NameTypeAccessDescription
LineStyleLineStyleRead/WriteGets or sets the border style.
LineWidthdoubleRead/WriteGets or sets the border width in points.
IsVisibleboolReadReturns true if the LineStyle is not None.
ColorSystem.Drawing.ColorRead/WriteGets or sets the border color.
DistanceFromTextdoubleRead/WriteGets or sets distance of the border from text or from the page edge in points.
ShadowboolRead/WriteGets or sets a value indicating whether the border has a shadow.
ThemeColorThemeColorRead/WriteGets or sets the theme color in the applied color scheme that is associated with this Border object.
TintAndShadedoubleRead/WriteGets or sets a double value that lightens or darkens a color.

Methods

SignatureDescription
ClearFormatting()Resets border properties to default values.
Equals(rhs: Border)Determines whether the specified border is equal in value to the current border.
Equals(obj: object)Determines whether the specified object is equal in value to the current object.
GetHashCode()Serves as a hash function for this type.

See Also