A collection of Border objects.
Shows how to insert a paragraph with a top border.
#include <Aspose.Words.Cpp/BorderCollection.h>
Public Member Functions | |
void | ClearFormatting () |
Removes all borders of an object. More... | |
bool | Equals (const SharedPtr< BorderCollection > &brColl) |
Compares collections of borders. More... | |
SharedPtr< Border > | get_Bottom () |
Gets the bottom border. More... | |
Color | get_Color () |
Gets or sets the border color. More... | |
int32_t | get_Count () |
Gets the number of borders in the collection. More... | |
double | get_DistanceFromText () |
Gets or sets distance of the border from text in points. More... | |
SharedPtr< Border > | get_Horizontal () |
Gets the horizontal border that is used between cells or conforming paragraphs. More... | |
SharedPtr< Border > | get_Left () |
Gets the left border. More... | |
LineStyle | get_LineStyle () |
Gets or sets the border style. More... | |
double | get_LineWidth () |
Gets or sets the border width in points. More... | |
SharedPtr< Border > | get_Right () |
Gets the right border. More... | |
bool | get_Shadow () |
Gets or sets a value indicating whether the border has a shadow. More... | |
SharedPtr< Border > | get_Top () |
Gets the top border. More... | |
SharedPtr< Border > | get_Vertical () |
Gets the vertical border that is used between cells. More... | |
SharedPtr< IEnumerator< SharedPtr< Border > > > | GetEnumerator () override |
Returns an enumerator object that can be used to iterate over all borders in the collection. More... | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< Border > | idx_get (BorderType borderType) |
Retrieves a Border object by border type. More... | |
SharedPtr< Border > | idx_get (int32_t index) |
Retrieves a Border object by index. More... | |
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... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
void Aspose::Words::BorderCollection::ClearFormatting | ( | ) |
Removes all borders of an object.
Shows how to remove all borders from all paragraphs in a document.
bool Aspose::Words::BorderCollection::Equals | ( | const System::SharedPtr< Aspose::Words::BorderCollection > & | brColl | ) |
Compares collections of borders.
Shows how border collections can share elements.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Bottom | ( | ) |
Gets the bottom border.
Shows how to apply border and shading color while building a table.
System::Drawing::Color Aspose::Words::BorderCollection::get_Color | ( | ) |
Gets or sets the border color.
Returns the color of the first border in the collection.
Sets the color of all borders in the collection excluding diagonal borders.
Shows how to create green wavy page border with a shadow.
int32_t Aspose::Words::BorderCollection::get_Count | ( | ) |
Gets the number of borders in the collection.
Shows how border collections can share elements.
double Aspose::Words::BorderCollection::get_DistanceFromText | ( | ) |
Gets or sets distance of the border from text in points.
Gets the distance from text for the first border.
Sets the distance from text for all borders in the collection excluding diagonal borders.
Has no effect and will be automatically reset to zero for borders of table cells.
Shows how to create green wavy page border with a shadow.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Horizontal | ( | ) |
Gets the horizontal border that is used between cells or conforming paragraphs.
Shows how to apply settings to horizontal borders to a paragraph's format.
Shows how to apply settings to vertical borders to a table row's format.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Left | ( | ) |
Gets the left border.
Shows how to apply border and shading color while building a table.
Aspose::Words::LineStyle Aspose::Words::BorderCollection::get_LineStyle | ( | ) |
Gets or sets the border style.
Returns the style of the first border in the collection.
Sets the style of all borders in the collection excluding diagonal borders.
Shows how to create green wavy page border with a shadow.
double Aspose::Words::BorderCollection::get_LineWidth | ( | ) |
Gets or sets the border width in points.
Returns the width of the first border in the collection.
Sets the width of all borders in the collection excluding diagonal borders.
Shows how to create green wavy page border with a shadow.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Right | ( | ) |
Gets the right border.
Shows how to apply border and shading color while building a table.
bool Aspose::Words::BorderCollection::get_Shadow | ( | ) |
Gets or sets a value indicating whether the border has a shadow.
Gets the value from the first border in the collection.
Sets the value for all borders in the collection excluding diagonal borders.
Shows how to create green wavy page border with a shadow.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Top | ( | ) |
Gets the top border.
Shows how to apply border and shading color while building a table.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::get_Vertical | ( | ) |
Gets the vertical border that is used between cells.
Shows how to apply settings to vertical borders to a table row's format.
|
override |
Returns an enumerator object that can be used to iterate over all borders in the collection.
Shows how to iterate over and edit all of the borders in a paragraph format object.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::idx_get | ( | Aspose::Words::BorderType | borderType | ) |
Retrieves a Border object by border type.
Note that not all borders are present for different document elements. This method throws an exception if you request a border not applicable to the current object.
borderType | A BorderType value that specifies the type of the border to retrieve. |
Shows how to decorate text with borders and shading.
System::SharedPtr<Aspose::Words::Border> Aspose::Words::BorderCollection::idx_get | ( | int32_t | index | ) |
Retrieves a Border object by index.
index | Zero-based index of the border to retrieve. |
Shows how border collections can share elements.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::BorderCollection::set_Color | ( | System::Drawing::Color | value | ) |
Setter for Aspose::Words::BorderCollection::get_Color.
void Aspose::Words::BorderCollection::set_DistanceFromText | ( | double | value | ) |
void Aspose::Words::BorderCollection::set_LineStyle | ( | Aspose::Words::LineStyle | value | ) |
Setter for Aspose::Words::BorderCollection::get_LineStyle.
void Aspose::Words::BorderCollection::set_LineWidth | ( | double | value | ) |
Setter for Aspose::Words::BorderCollection::get_LineWidth.
void Aspose::Words::BorderCollection::set_Shadow | ( | bool | value | ) |
Setter for Aspose::Words::BorderCollection::get_Shadow.
|
static |