Aspose::Cells::IBorder Class Referenceabstract

Encapsulates the object that represents the cell border. More...

Inherits Object.

Public Member Functions

virtual intrusive_ptr< Aspose::Cells::IThemeColorGetIThemeColor ()=0
 Gets the theme color of the border. More...
 
virtual void SetIThemeColor (intrusive_ptr< Aspose::Cells::IThemeColor > value)=0
 Sets the theme color of the border. More...
 
virtual intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > GetColor ()=0
 Gets the System.Drawing.Color of the border. More...
 
virtual void SetColor (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > value)=0
 Sets the System.Drawing.Color of the border. More...
 
virtual Aspose::Cells::Systems::Int32 GetArgbColor ()=0
 Gets the color with a 32-bit ARGB value. More...
 
virtual void SetArgbColor (Aspose::Cells::Systems::Int32 value)=0
 Sets the color with a 32-bit ARGB value. More...
 
virtual Aspose::Cells::CellBorderType GetLineStyle ()=0
 Gets the cell border type. More...
 
virtual void SetLineStyle (Aspose::Cells::CellBorderType value)=0
 Sets the cell border type. More...
 

Detailed Description

Encapsulates the object that represents the cell border.

[C++]
intrusive_ptr<Aspose::Cells::IWorkbook> workbook = Factory::CreateIWorkbook();
int styleIndex = workbook->GetIStyles()->Add();
intrusive_ptr<IStyle> style = workbook->GetIStyles()->GetObjectByIndex(styleIndex);
//Set top border style and color
intrusive_ptr<IBorder> border = style->GetIBorders()->GetObjectByIndex(BorderType_TopBorder);
border->SetLineStyle(CellBorderType_Medium);
border->SetColor(Color::GetRed());
workbook->GetIWorksheets()->Add();
intrusive_ptr<Aspose::Cells::IWorksheet> worksheet = workbook->GetIWorksheets()->GetObjectByIndex(0);
intrusive_ptr<Aspose::Cells::ICell> cell = worksheet->GetICells()->GetObjectByIndex(new String("A1"));
cell->SetIStyle(style);

Member Function Documentation

◆ GetArgbColor()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IBorder::GetArgbColor ( )
pure virtual

Gets the color with a 32-bit ARGB value.

◆ GetColor()

virtual intrusive_ptr<Aspose::Cells::Systems::Drawing::Color> Aspose::Cells::IBorder::GetColor ( )
pure virtual

Gets the System.Drawing.Color of the border.

◆ GetIThemeColor()

virtual intrusive_ptr<Aspose::Cells::IThemeColor> Aspose::Cells::IBorder::GetIThemeColor ( )
pure virtual

Gets the theme color of the border.

◆ GetLineStyle()

virtual Aspose::Cells::CellBorderType Aspose::Cells::IBorder::GetLineStyle ( )
pure virtual

Gets the cell border type.

◆ SetArgbColor()

virtual void Aspose::Cells::IBorder::SetArgbColor ( Aspose::Cells::Systems::Int32  value)
pure virtual

Sets the color with a 32-bit ARGB value.

◆ SetColor()

virtual void Aspose::Cells::IBorder::SetColor ( intrusive_ptr< Aspose::Cells::Systems::Drawing::Color >  value)
pure virtual

Sets the System.Drawing.Color of the border.

◆ SetIThemeColor()

virtual void Aspose::Cells::IBorder::SetIThemeColor ( intrusive_ptr< Aspose::Cells::IThemeColor value)
pure virtual

Sets the theme color of the border.

◆ SetLineStyle()

virtual void Aspose::Cells::IBorder::SetLineStyle ( Aspose::Cells::CellBorderType  value)
pure virtual

Sets the cell border type.