Cell

Cell class

Represents a cell of a table.

class Cell : public Aspose::Slides::IDOMObject,
             public Aspose::Slides::ICell

Methods

MethodDescription
virtual bool Equals(ptr)Compares objects using C# Object.Equals semantics.
static std::enable_if<IsSmartPtr<T1>::value&&IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&)Compares reference type objects in C# style.
static std::enable_if<!IsSmartPtr<T1>::value&&!IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&)Compares value type objects in C# style.
static bool Equals(float const&, float const&)Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
static bool Equals(double const&, double const&)Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
virtual bool FastCast(const Details::FastRttiBase&, void **) constFor internal purposes only.
bool get_AnchorCenter() overrideDetermines whether or not text box centered inside a cell. Read bool.
System::SharedPtr<ICellFormat> get_CellFormat() overrideReturns the CellFormat object that contains formatting properties for this cell. Read-only ICellFormat.
int32_t get_ColSpan() overrideReturns the number of grid columns in the parent table’s table grid which shall be spanned by the current cell. This property allows cells to have the appearance of being merged, as they span vertical boundaries of other cells in the table. Read-only int32_t.
System::SharedPtr<IColumn> get_FirstColumn() overrideGets first column of cell. Read-only IColumn.
int32_t get_FirstColumnIndex() overrideReturns an index of first column, covered by the cell. Read-only int32_t.
System::SharedPtr<IRow> get_FirstRow() overrideGets first row of cell. Read-only IRow.
int32_t get_FirstRowIndex() overrideReturns an index of first row, covered by the cell. Read-only int32_t.
double get_Height() overrideReturns the height of the cell. Read-only double.
bool get_IsMergedCell() overrideReturns true if the cell is merged with any adjusted cell, false otherwise. Read-only bool.
double get_MarginBottom() overrideReturns the bottom margin in a TextFrame. Read double.
double get_MarginLeft() overrideReturns the left margin in a TextFrame. Read double.
double get_MarginRight() overrideReturns the right margin in a TextFrame. Read double.
double get_MarginTop() overrideReturns the top margin in a TextFrame. Read double.
double get_MinimalHeight() overrideReturns the minimum height of a cell. This is a sum of minimal heights of all rows cowered by the cell. Read-only double.
double get_OffsetX() overrideReturns a distance from left side of a table to left side of a cell. Read-only double.
double get_OffsetY() overrideReturns a distance from top side of a table to top side of a cell. Read-only double.
System::SharedPtr<IPresentation> get_Presentation() overrideReturns the parent presentation of a cell. Read-only IPresentation.
int32_t get_RowSpan() overrideReturns the number of rows that a merged cell spans. This is used in combination with the vMerge attribute on other cells in order to specify the beginning cell of a horizontal merge. Read-only int32_t.
System::SharedPtr<IBaseSlide> get_Slide() overrideReturns the parent slide of a cell. Read-only IBaseSlide.
System::SharedPtr<ITable> get_Table() overrideReturns the parent Table object for a cell. Read-only ITable.
Aspose::Slides::TextAnchorType get_TextAnchorType() overrideReturns the text anchor type. Read Slides::TextAnchorType.
System::SharedPtr<ITextFrame> get_TextFrame() overrideReturns the text frame of a cell. Read-only ITextFrame.
Aspose::Slides::TextVerticalType get_TextVerticalType() overrideReturns the type of vertical text. Read Slides::TextVerticalType.
double get_Width() overrideReturns the width of the cell. Read-only double.
Detail::SmartPtrCounter * GetCounter()Gets reference counter data structure associated with the object.
virtual int32_t GetHashCode() constAnalog of C# Object.GetHashCode() method. Enables hashing of custom objects.
virtual const TypeInfo& GetType() constGets actual type of object. Analog of C# System.Object.GetType() call.
virtual bool Is(const TypeInfo&) constCheck if object represents an instance of type described by targetType. Analog of C# ‘is’ operator.
void Lock()Implements C# lock() statement locking. Call directly or use LockContext sentry object.
virtual ptr MemberwiseClone() constAnalog of C# Object.MemberwiseClone() method. Enables cloning custom types.
Object()Creates object. Initializes all internal data structures.
Object(Object const&)Copy constructor. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses.
Object& operator=(Object const&)Assignment operator. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses.
static bool ReferenceEquals(ptr const&, ptr const&)Compares objects by reference.
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, T const&)Compares objects by reference.
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, std::nullptr_t)Reference-compares value type object with nullptr.
bool ReferenceEquals(String const&, std::nullptr_t)Specialization of Object::ReferenceEquals for case of string and nullptr.
bool ReferenceEquals(String const&, String const&)Specialization of Object::ReferenceEquals for case of strings.
int RemovedSharedRefs(int)Decreases shared reference count by specified value.
void set_AnchorCenter(bool) overrideDetermines whether or not text box centered inside a cell. Write bool.
void set_MarginBottom(double) overrideSets the bottom margin in a TextFrame. Write double.
void set_MarginLeft(double) overrideSets the left margin in a TextFrame. Write double.
void set_MarginRight(double) overrideSets the right margin in a TextFrame. Write double.
void set_MarginTop(double) overrideSets the top margin in a TextFrame. Write double.
void set_TextAnchorType(Aspose::Slides::TextAnchorType) overrideSets the text anchor type. Write Slides::TextAnchorType.
void set_TextVerticalType(Aspose::Slides::TextVerticalType) overrideSets the type of vertical text. Write Slides::TextVerticalType.
virtual void SetTemplateWeakPtr(uint32_t)Set n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
int SharedCount() constGets current value of shared reference counter.
Object * SharedRefAdded()Increments shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
int SharedRefRemovedSafe()Decrements and returns shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
void SplitByColSpan(int32_t) overrideSplits the cell to two cells by index of column.
void SplitByHeight(double) overrideSplits the cell by height.
void SplitByRowSpan(int32_t) overrideSplits the cell to two cells by index of row.
void SplitByWidth(double) overrideSplits the cell by width.
virtual String ToString() constAnalog of C# Object.ToString() method. Enables converting custom objects to string.
static const TypeInfo& Type()Implements C# typeof(System.Object) construct.
void Unlock()Implements C# lock() statement unlocking. Call directly or use LockContext sentry object.
Detail::SmartPtrCounter * WeakRefAdded()Increments weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
void WeakRefRemoved()Decrements weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
virtual ~Object()Destroys object. Frees all internal data structures.

See Also