Represents a border of an object.
Borders can be applied to various document elements including paragraph, run of text inside a paragraph or a table cell.
Shows how to insert a string surrounded by a border into a document.
Shows how to insert a paragraph with a top border.
#include <Aspose.Words.Cpp/Border.h>
Public Member Functions | |
void | ClearFormatting () |
Resets border properties to default values. More... | |
bool | Equals (const SharedPtr< Border > &rhs) |
Determines whether the specified border is equal in value to the current border. More... | |
bool | Equals (SharedPtr< Object > obj) override |
Determines whether the specified object is equal in value to the current object. More... | |
Color | get_Color () |
Gets or sets the border color. More... | |
double | get_DistanceFromText () |
Gets or sets distance of the border from text or from the page edge in points. More... | |
bool | get_IsVisible () |
Returns true if the LineStyle is not LineStyle.None. More... | |
LineStyle | get_LineStyle () |
Gets or sets the border style. More... | |
double | get_LineWidth () |
Gets or sets the border width in points. More... | |
bool | get_Shadow () |
Gets or sets a value indicating whether the border has a shadow. More... | |
int32_t | GetHashCode () const override |
Serves as a hash function for this type. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_Color (Color value) |
Setter for get_Color. More... | |
void | set_DistanceFromText (double value) |
Setter for get_DistanceFromText. More... | |
void | set_LineStyle (LineStyle value) |
Setter for get_LineStyle. More... | |
void | set_LineWidth (double value) |
Setter for get_LineWidth. More... | |
void | set_Shadow (bool value) |
Setter for get_Shadow. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
void Aspose::Words::Border::ClearFormatting | ( | ) |
Resets border properties to default values.
Shows how to remove borders from a paragraph.
bool Aspose::Words::Border::Equals | ( | const System::SharedPtr< Aspose::Words::Border > & | rhs | ) |
Determines whether the specified border is equal in value to the current border.
Shows how border collections can share elements.
|
override |
Determines whether the specified object is equal in value to the current object.
Shows how border collections can share elements.
System::Drawing::Color Aspose::Words::Border::get_Color | ( | ) |
Gets or sets the border color.
Shows how to insert a string surrounded by a border into a document.
double Aspose::Words::Border::get_DistanceFromText | ( | ) |
Gets or sets distance of the border from text or from the page edge in points.
Shows how to create a wide blue band border at the top of the first page.
bool Aspose::Words::Border::get_IsVisible | ( | ) |
Returns true if the LineStyle is not LineStyle.None.
Shows how to remove borders from a paragraph.
Aspose::Words::LineStyle Aspose::Words::Border::get_LineStyle | ( | ) |
Gets or sets the border style.
If you set line style to none, then line width is automatically changed to zero.
Shows how to insert a string surrounded by a border into a document.
double Aspose::Words::Border::get_LineWidth | ( | ) |
Gets or sets the border width in points.
If you set line width greater than zero when line style is none, the line style is automatically changed to single line.
Shows how to insert a string surrounded by a border into a document.
bool Aspose::Words::Border::get_Shadow | ( | ) |
Gets or sets a value indicating whether the border has a shadow.
In Microsoft Word, for a border to have a shadow, the borders on all four sides (left, top, right and bottom) should be of the same type, width, color and all should have the Shadow property set to true.
Shows how to create green wavy page border with a shadow.
|
overridevirtual |
Serves as a hash function for this type.
Shows how border collections can share elements.
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from Aspose::Words::InternableComplexAttr.
|
overridevirtual |
Reimplemented from Aspose::Words::InternableComplexAttr.
void Aspose::Words::Border::set_Color | ( | System::Drawing::Color | value | ) |
Setter for Aspose::Words::Border::get_Color.
void Aspose::Words::Border::set_DistanceFromText | ( | double | value | ) |
Setter for Aspose::Words::Border::get_DistanceFromText.
void Aspose::Words::Border::set_LineStyle | ( | Aspose::Words::LineStyle | value | ) |
Setter for Aspose::Words::Border::get_LineStyle.
void Aspose::Words::Border::set_LineWidth | ( | double | value | ) |
Setter for Aspose::Words::Border::get_LineWidth.
void Aspose::Words::Border::set_Shadow | ( | bool | value | ) |
Setter for Aspose::Words::Border::get_Shadow.
|
static |