Border

Overview

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

Represents a border of an object.

Edition status of its 26 listed members (a property and its accessor methods are listed separately, overloads once): 26 not yet exercised by a verified example.

This class declares 19 methods for Border objects in Java programs. Available methods include: clearFormatting, equals, getColor, getDistanceFromText, getLineStyle, getLineWidth, getShadow, getThemeColor, getTintAndShade, hashCode, isVisible, setColor, and 6 additional methods. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: color, distanceFromText, lineStyle, lineWidth, shadow, themeColor, and 2 more.

Properties

NameTypeAccessDescription
lineStyleintRead/WriteGets or sets the border style.
lineWidthdoubleRead/WriteGets or sets the border width in points.
visiblebooleanReadReturns true if the LineStyle is not LineStyle.NONE.
colorColorRead/WriteGets or sets the border color.
distanceFromTextdoubleRead/WriteGets or sets distance of the border from text or from the page edge in points.
shadowbooleanRead/WriteGets or sets a value indicating whether the border has a shadow.
themeColorintRead/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.
getLineStyle() → intGets or sets the border style.
setLineStyle(value: int)Sets the line style value.
getLineWidth() → doubleGets or sets the border width in points.
setLineWidth(value: double)Sets the line width value.
isVisible() → booleanReturns true if the LineStyle is not LineStyle.NONE.
getColor() → ColorGets or sets the border color.
setColor(value: Color)Sets the color value.
getDistanceFromText() → doubleGets or sets distance of the border from text or from the page edge in points.
setDistanceFromText(value: double)Sets the distance from text value.
getShadow() → booleanGets or sets a value indicating whether the border has a shadow.
setShadow(value: boolean)Sets the shadow value.
getThemeColor() → intGets or sets the theme color in the applied color scheme that is associated with this Border object.
setThemeColor(value: int)Sets the theme color value.
getTintAndShade() → doubleGets or sets a double value that lightens or darkens a color.
setTintAndShade(value: double)Sets the tint and shade value.
equals(rhs: Border) → booleanDetermines whether the specified border is equal in value to the current border.
equals(obj: Object) → booleanDetermines whether the specified object is equal in value to the current object.
hashCode() → intServes as a hash function for this type.

See Also