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
| Name | Type | Access | Description |
|---|---|---|---|
lineStyle | int | Read/Write | Gets or sets the border style. |
lineWidth | double | Read/Write | Gets or sets the border width in points. |
visible | boolean | Read | Returns true if the LineStyle is not LineStyle.NONE. |
color | Color | Read/Write | Gets or sets the border color. |
distanceFromText | double | Read/Write | Gets or sets distance of the border from text or from the page edge in points. |
shadow | boolean | Read/Write | Gets or sets a value indicating whether the border has a shadow. |
themeColor | int | Read/Write | Gets or sets the theme color in the applied color scheme that is associated with this Border object. |
tintAndShade | double | Read/Write | Gets or sets a double value that lightens or darkens a color. |
Methods
| Signature | Description |
|---|---|
clearFormatting() | Resets border properties to default values. |
getLineStyle() → int | Gets or sets the border style. |
setLineStyle(value: int) | Sets the line style value. |
getLineWidth() → double | Gets or sets the border width in points. |
setLineWidth(value: double) | Sets the line width value. |
isVisible() → boolean | Returns true if the LineStyle is not LineStyle.NONE. |
getColor() → Color | Gets or sets the border color. |
setColor(value: Color) | Sets the color value. |
getDistanceFromText() → double | Gets 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() → boolean | Gets or sets a value indicating whether the border has a shadow. |
setShadow(value: boolean) | Sets the shadow value. |
getThemeColor() → int | Gets 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() → double | Gets or sets a double value that lightens or darkens a color. |
setTintAndShade(value: double) | Sets the tint and shade value. |
equals(rhs: Border) → boolean | Determines whether the specified border is equal in value to the current border. |
equals(obj: Object) → boolean | Determines whether the specified object is equal in value to the current object. |
hashCode() → int | Serves as a hash function for this type. |