Inherits Object.
|
virtual void | Calculate (intrusive_ptr< Aspose::Cells::ICalculationOptions > options)=0 |
| Calculates the formula of the cell. More...
|
|
virtual void | Calculate (bool ignoreError, intrusive_ptr< Aspose::Cells::ICustomFunction > customFunction)=0 |
| Calculates the formula of the cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IWorksheet > | GetIWorksheet ()=0 |
| Gets the parent worksheet. More...
|
|
virtual void | PutValue (bool boolValue)=0 |
| Puts an boolean value into the cell. More...
|
|
virtual void | PutValue (Aspose::Cells::Systems::Int32 intValue)=0 |
| Puts an integer value into the cell. More...
|
|
virtual void | PutValue (Aspose::Cells::Systems::Double doubleValue)=0 |
| Puts a double value into the cell. More...
|
|
virtual void | PutValue (intrusive_ptr< Aspose::Cells::Systems::String > stringValue, bool isConverted, bool setStyle)=0 |
| Puts a value into the cell, if appropriate the value will be converted to other data type and cell's number format will be reset. More...
|
|
virtual void | PutValue (intrusive_ptr< Aspose::Cells::Systems::String > stringValue, bool isConverted)=0 |
| Puts a string value into the cell and converts the value to other data type if appropriate. More...
|
|
virtual void | PutValue (intrusive_ptr< Aspose::Cells::Systems::String > stringValue)=0 |
| Puts a string value into the cell. More...
|
|
virtual void | PutValue (intrusive_ptr< Aspose::Cells::Systems::DateTime > dateTime)=0 |
| Puts a DateTime value into the cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::DateTime > | GetDateTimeValue ()=0 |
| Gets the DateTime value contained in the cell. More...
|
|
virtual void | PutValue (intrusive_ptr< Aspose::Cells::Systems::Object > objectValue)=0 |
| Puts an object value into the cell. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetRow ()=0 |
| Gets row number (zero based) of the cell. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetColumn ()=0 |
| Gets column number (zero based) of the cell. More...
|
|
virtual bool | IsFormula ()=0 |
| Represents if the specified cell contains formula. More...
|
|
virtual Aspose::Cells::CellValueType | GetType ()=0 |
| Represents cell value type. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetName ()=0 |
| Gets the name of the cell. More...
|
|
virtual bool | IsErrorValue ()=0 |
| Checks if a formula can properly evaluate a result. More...
|
|
virtual bool | IsNumericValue ()=0 |
| Indicates whether the inner value of this cell is numeric(int, double and datetime) More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetStringValue (Aspose::Cells::CellValueFormatStrategy formatStrategy)=0 |
| Gets the string value by specific formatted strategy. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetStringValue ()=0 |
| Gets the string value contained in the cell. If the type of this cell is string, then return the string value itself. For other cell types, the formatted string value (formatted with the specified style of this cell) will be returned. The formatted cell value is same with what you can get from excel when copying a cell as text (such as copying cell to text editor or exporting to csv). More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetStringValueWithoutFormat ()=0 |
| Gets cell's value as string without any format. More...
|
|
virtual Aspose::Cells::NumberCategoryType | GetNumberCategoryType ()=0 |
| Represents the category type of this cell's number formatting. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetDisplayStringValue ()=0 |
| Gets the formatted string value of this cell by cell's display style. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetIntValue ()=0 |
| Gets the integer value contained in the cell. More...
|
|
virtual Aspose::Cells::Systems::Double | GetDoubleValue ()=0 |
| Gets the double value contained in the cell. More...
|
|
virtual Aspose::Cells::Systems::Single | GetFloatValue ()=0 |
| Gets the float value contained in the cell. More...
|
|
virtual bool | GetBoolValue ()=0 |
| Gets the boolean value contained in the cell. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetWidthOfValue ()=0 |
| Gets the width of the value in unit of pixels. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetHeightOfValue ()=0 |
| Gets the height of the value in unit of pixels. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IStyle > | GetDisplayIStyle ()=0 |
| Gets the display style of the cell. If this cell is also affected by other settings such as conditional formatting, list objects, etc., then the display style may be different from cell.GetStyle(). More...
|
|
virtual intrusive_ptr< Aspose::Cells::IStyle > | GetDisplayIStyle (bool includeMergedBorders)=0 |
| Gets the display style of the cell. If the cell is conditional formatted, the display style is not same as the cell.GetStyle(). More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::IFormatConditionCollection * > > | GetIFormatConditions ()=0 |
| Gets format conditions which applies to this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IStyle > | GetIStyle ()=0 |
| Gets the cell style. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IStyle > | GetIStyle (bool checkBorders)=0 |
| If checkBorders is true, check whether other cells' borders will effect the style of this cell. More...
|
|
virtual void | SetIStyle (intrusive_ptr< Aspose::Cells::IStyle > style)=0 |
| Sets the cell style. More...
|
|
virtual void | SetIStyle (intrusive_ptr< Aspose::Cells::IStyle > style, bool explicitFlag)=0 |
| Apply the cell style. More...
|
|
virtual void | SetIStyle (intrusive_ptr< Aspose::Cells::IStyle > style, intrusive_ptr< Aspose::Cells::IStyleFlag > flag)=0 |
| Apply the cell style. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetSharedStyleIndex ()=0 |
| Gets cell's shared style index in the style pool. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetFormula ()=0 |
| Gets a formula of the ICell More...
|
|
virtual void | SetFormula (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
| Gets or sets a formula of the ICell More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetFormulaLocal ()=0 |
| Get the locale formatted formula of the cell. More...
|
|
virtual void | SetFormulaLocal (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
| Get the locale formatted formula of the cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetR1C1Formula ()=0 |
| Gets a R1C1 formula of the ICell More...
|
|
virtual void | SetR1C1Formula (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
| Sets a R1C1 formula of the ICell More...
|
|
virtual void | SetFormula (intrusive_ptr< Aspose::Cells::Systems::String > formula, intrusive_ptr< Aspose::Cells::Systems::Object > value)=0 |
| Set the formula and the value of the formula. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetFormula (bool isR1C1, bool isLocal)=0 |
| Get the formula of this cell. More...
|
|
virtual void | SetFormula (intrusive_ptr< Aspose::Cells::Systems::String > formula, bool isR1C1, bool isLocal, intrusive_ptr< Aspose::Cells::Systems::Object > value)=0 |
| Set the formula and the value of the formula. More...
|
|
virtual void | SetArrayFormula (intrusive_ptr< Aspose::Cells::Systems::String > arrayFormula, Aspose::Cells::Systems::Int32 rowNumber, Aspose::Cells::Systems::Int32 columnNumber, bool isR1C1, bool isLocal)=0 |
| Sets an array formula to a range of cells. More...
|
|
virtual void | SetSharedFormula (intrusive_ptr< Aspose::Cells::Systems::String > sharedFormula, Aspose::Cells::Systems::Int32 rowNumber, Aspose::Cells::Systems::Int32 columnNumber, bool isR1C1, bool isLocal)=0 |
| Sets a formula to a range of cells. More...
|
|
virtual bool | ContainsExternalLink ()=0 |
| Indicates whether this cell contains an external link. Only applies when the cell is a formula cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IReferredAreaCollection > | GetIPrecedents ()=0 |
| Gets all cells or ranges which this cell's formula depends on. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::ICell * > > | GetDependentICells (bool isAll)=0 |
| Get all cells which refer to the specific cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Collections::IEnumerator > | GetPrecedentsInCalculation ()=0 |
| Gets all precedents(reference to cells in current workbook) used by this cell's formula while calculating it. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Collections::IEnumerator > | GetDependentsInCalculation (bool recursive)=0 |
| Gets all cells whose calculated result depends on this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Collections::IEnumerator > | GetLeafs ()=0 |
| Get all cells which will be updated when this cell is modified. This method can only work after calling CalculateFormula method of IWorkbook. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Collections::IEnumerator > | GetLeafs (bool recursive)=0 |
| Get all cells which will be updated when this cell is modified. More...
|
|
virtual bool | IsArrayHeader ()=0 |
| Indicates the cell's formula is and array formula and it is the first cell of the array. More...
|
|
virtual intrusive_ptr< Aspose::Cells::ICellArea > | GetArrayICellArea ()=0 |
| Gets the array range if the cell's formula is an array formula. More...
|
|
virtual bool | IsArrayFormula ()=0 |
| Indicates whether the cell formula is an array formula. More...
|
|
virtual bool | IsInArray ()=0 |
| Indicates whether the cell formula is an array formula. More...
|
|
virtual bool | IsSharedFormula ()=0 |
| Indicates whether the cell formula is part of shared formula. More...
|
|
virtual bool | IsTableFormula ()=0 |
| Indicates whether this cell is part of table formula. More...
|
|
virtual bool | IsInTable ()=0 |
|
virtual void | SetArrayFormula (intrusive_ptr< Aspose::Cells::Systems::String > arrayFormula, Aspose::Cells::Systems::Int32 rowNumber, Aspose::Cells::Systems::Int32 columnNumber)=0 |
| Sets an array formula(legacy array formula entered via CTRL+SHIFT+ENTER in ms excel) to a range of cells. More...
|
|
virtual void | SetSharedFormula (intrusive_ptr< Aspose::Cells::Systems::String > sharedFormula, Aspose::Cells::Systems::Int32 rowNumber, Aspose::Cells::Systems::Int32 columnNumber)=0 |
| Sets a formula to a range of cells. More...
|
|
virtual void | RemoveArrayFormula (bool leaveNormalFormula)=0 |
| Remove array formula. More...
|
|
virtual void | Copy (intrusive_ptr< Aspose::Cells::ICell > cell)=0 |
| Copies data from a source cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Object > | GetValue ()=0 |
| Gets the value contained in this cell. More...
|
|
virtual void | SetValue (intrusive_ptr< Aspose::Cells::Systems::Object > value)=0 |
| Gets the value contained in this cell. More...
|
|
virtual bool | IsStyleSet ()=0 |
| Indicates if the cell's style is set. If return false, it means this cell has a default cell format. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IFontSetting > | GetIFontSetting (Aspose::Cells::Systems::Int32 startIndex, Aspose::Cells::Systems::Int32 length)=0 |
| Returns a Characters object that represents a range of characters within the cell text. More...
|
|
virtual bool | IsRichText ()=0 |
| Indicates whether the cell string value is a rich text. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::IFontSetting * > > | GetIFontSettings ()=0 |
| Returns all Characters objects that represents a range of characters within the cell text. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::IFontSetting * > > | GetIFontSettings (bool flag)=0 |
| Returns all Characters objects that represents a range of characters within the cell text. More...
|
|
virtual void | SetIFontSettings (intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::IFontSetting *>> characters)=0 |
| Sets rich text format of the cell. More...
|
|
virtual bool | IsMerged ()=0 |
| Checks if a cell is part of a merged range or not. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IRange > | GetMergedIRange ()=0 |
| Returns a IRange object which represents a merged range. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IComment > | GetIComment ()=0 |
| Gets the comment of this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetHtmlString ()=0 |
| Gets the html string which contains data and some formats in this cell. More...
|
|
virtual void | SetHtmlString (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
| Sets the html string which contains data and some formats in this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetHtmlString (bool html5)=0 |
| Gets the html string which contains data and some formats in this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Systems::String > | ToString ()=0 |
| Returns a string represents the current Cell object. More...
|
|
virtual bool | Equals (intrusive_ptr< Aspose::Cells::Systems::Object > obj)=0 |
| Checks whether this object refers to the same cell with another. More...
|
|
virtual Aspose::Cells::Systems::Int32 | GetHashCode ()=0 |
| Serves as a hash function for a particular type. More...
|
|
virtual bool | Equals (intrusive_ptr< Aspose::Cells::ICell > cell)=0 |
| Checks whether this object refers to the same cell with another cell object. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IConditionalFormattingResult > | GetIConditionalFormattingResult ()=0 |
| Get the result of the conditional formatting. More...
|
|
virtual intrusive_ptr< Aspose::Cells::IValidation > | GetIValidation ()=0 |
| Gets the validation applied to this cell. More...
|
|
virtual bool | GetValidationValue ()=0 |
| Gets the value of validation which applied to this cell. More...
|
|
virtual intrusive_ptr< Aspose::Cells::Tables::IListObject > | GetITable ()=0 |
| Gets the table which contains this cell. More...
|
|
Encapsulates the object that represents a single Workbook cell.
[C++]
intrusive_ptr<ICells> cells = excel->GetIWorksheets()->GetObjectByIndex(0)->GetICells();
intrusive_ptr<ICell> cell = cells->GetObjectByIndex(0,0);
cell->PutValue((StringPtr)new String("Hello"));
StringPtr first = cell->GetStringValue();
cell = cells->GetObjectByIndex(new String("B1"));
cell->PutValue(12);
int second = cell->GetIntValue();
cell = cells->GetObjectByIndex(0, 2);
cell->PutValue(-1.234);
double third = cell->GetDoubleValue();
cell = cells->GetObjectByIndex(new String("D1"));
cell->SetFormula(new String("=B1 + C1"));
cell = cells->GetObjectByIndex(new String("b2"));
cell->SetFormula(new String("=sum(average(b1,c1), b1)"));
<br>
intrusive_ptr<IStyle> style = cell->GetIStyle();
style->SetBackgroundColor(Color::GetYellow());
style->GetIFont()->SetName(new String("Courier New"));
style->SetVerticalAlignment(TextAlignmentType::TextAlignmentType_Top);
cell->SetIStyle(style);