Aspose::Pdf::Cell Class Referencefinal

Represents a cell of the table's row. More...

Inherits System::ICloneable.

Public Member Functions

bool get_IsNoBorder ()
 Gets the cell have border. More...
 
void set_IsNoBorder (bool value)
 Sets the cell have border. More...
 
System::SharedPtr< MarginInfoget_Margin ()
 Gets the padding. More...
 
void set_Margin (System::SharedPtr< MarginInfo > value)
 Sets the padding. More...
 
System::SharedPtr< BorderInfoget_Border ()
 Gets the border. More...
 
void set_Border (System::SharedPtr< BorderInfo > value)
 Sets the border. More...
 
System::SharedPtr< Colorget_BackgroundColor ()
 Gets the background color. More...
 
void set_BackgroundColor (System::SharedPtr< Color > value)
 Sets the background color. More...
 
System::String get_BackgroundImageFile ()
 Gets the background image file. More...
 
void set_BackgroundImageFile (System::String value)
 Sets the background image file. More...
 
HorizontalAlignment get_Alignment ()
 Gets the alignment. More...
 
void set_Alignment (HorizontalAlignment value)
 Sets the alignment. More...
 
System::SharedPtr< Text::TextStateget_DefaultCellTextState ()
 Gets the default cell text state. More...
 
void set_DefaultCellTextState (System::SharedPtr< Text::TextState > value)
 Sets the default cell text state. More...
 
System::SharedPtr< Aspose::Pdf::Paragraphsget_Paragraphs ()
 Gets the cell's formatted text. More...
 
void set_Paragraphs (System::SharedPtr< Aspose::Pdf::Paragraphs > value)
 Sets the cell's formatted text. More...
 
bool get_IsWordWrapped ()
 Gets the cell's text word wrapped. More...
 
void set_IsWordWrapped (bool value)
 Sets the cell's text word wrapped. More...
 
Aspose::Pdf::VerticalAlignment get_VerticalAlignment ()
 Gets the vertical alignment. More...
 
void set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value)
 Sets the vertical alignment. More...
 
int32_t get_ColSpan ()
 Gets the column span. More...
 
void set_ColSpan (int32_t value)
 Sets the column span. More...
 
int32_t get_RowSpan ()
 Gets the row span. More...
 
void set_RowSpan (int32_t value)
 Sets the row span. More...
 
double get_Width ()
 Gets the column width. More...
 
 Cell (System::SharedPtr< Rectangle > rect)
 Initializes a new instance of the Cell class. More...
 
 Cell ()
 Initializes a new instance of the Cell class. More...
 
System::SharedPtr< System::ObjectClone ()
 Clone the cell. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

bool get_IsHorizontalAlignmentSet ()
 Gets is horizontal aligmnent set. More...
 
void set_IsHorizontalAlignmentSet (bool value)
 Sets is horizontal aligmnent set. More...
 
int32_t get_ProcessedParagraphsCount ()
 Gets processed paragraphs for (row.IsRowBroken property). More...
 
bool get_IsNothingWrited ()
 Gets is nothing write for this property. More...
 
void set_IsNothingWrited (bool value)
 Sets is nothing write for this property. More...
 
System::SharedPtr< Rectangleget_Rect ()
 Gets cell rect. More...
 
void set_Rect (System::SharedPtr< Rectangle > value)
 Gets cell rect. More...
 
void set_Width (double value)
 Sets the column width. More...
 
double get_Height ()
 Gets the column height(processed internally). More...
 
void set_Height (double value)
 Sets the column height(processed internally). More...
 
bool get_IsHeightExceedSize ()
 Gets the is height exceed size(processed internally). More...
 
void set_IsHeightExceedSize (bool value)
 Sets the is height exceed size(processed internally). More...
 
bool get_IsSpanAdditionalCell ()
 Gets the row span additional cell(processed internally). More...
 
void set_IsSpanAdditionalCell (bool value)
 Sets the row span additional cell(processed internally). More...
 
bool get_IsLastSpannedCell ()
 Gets cell is last spanned for disable right border(processed internally). More...
 
void set_IsLastSpannedCell (bool value)
 Sets cell is last spanned for disable right border(processed internally). More...
 
bool get_IsRightBorderOpened ()
 Gets is right border opened(processed internally). More...
 
bool get_IsInsertedInternally ()
 Gets the cell inserted internally(processed internally). More...
 
void set_IsInsertedInternally (bool value)
 Sets the cell inserted internally(processed internally). More...
 
bool CalculateHeight (System::SharedPtr< Table > table, double width, System::SharedPtr< Page > page, double bottomY, double curY, bool isScaleParagraphs)
 Gets cell height. More...
 
void ApplyCellTextParagraphs (System::SharedPtr< Text::TextState > textState)
 Apply cell text paragraphs More...
 
void DrawBackGround (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> list, double roundedBorderRadius)
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > GetOperators (System::SharedPtr< Table > table, System::SharedPtr< Page > page, double roundedBorderRadius, double pureHeight, bool isCellBroken)
 Adds graphic element into the page's content. More...
 
System::SharedPtr< TableGetTableFromParagraphs ()
 Get table from paragraphs. More...
 
void CalculateRoundedBorders (int32_t rowIndex, int32_t rowCount, int32_t cellIndex, int32_t cellCount)
 
void CalculateRect (double curX, double curY, System::SharedPtr< Row > row, System::SharedPtr< Table > table, int32_t i, double pureHeight)
 
void Serialize (System::SharedPtr< System::Xml::XmlTextWriter > writer)
 
void Deserialize (System::SharedPtr< System::Xml::XmlReader > reader)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a cell of the table's row.

Constructor & Destructor Documentation

◆ Cell() [1/2]

Aspose::Pdf::Cell::Cell ( System::SharedPtr< Rectangle rect)

Initializes a new instance of the Cell class.

Parameters
rectThe rectangle of the cell in page's coordinates.

◆ Cell() [2/2]

Aspose::Pdf::Cell::Cell ( )

Initializes a new instance of the Cell class.

Member Function Documentation

◆ ApplyCellTextParagraphs()

void Aspose::Pdf::Cell::ApplyCellTextParagraphs ( System::SharedPtr< Text::TextState textState)
protected

Apply cell text paragraphs

Parameters
textStateThe text state.

◆ CalculateHeight()

bool Aspose::Pdf::Cell::CalculateHeight ( System::SharedPtr< Table table,
double  width,
System::SharedPtr< Page page,
double  bottomY,
double  curY,
bool  isScaleParagraphs 
)
protected

Gets cell height.

◆ CalculateRect()

void Aspose::Pdf::Cell::CalculateRect ( double  curX,
double  curY,
System::SharedPtr< Row row,
System::SharedPtr< Table table,
int32_t  i,
double  pureHeight 
)
protected

◆ CalculateRoundedBorders()

void Aspose::Pdf::Cell::CalculateRoundedBorders ( int32_t  rowIndex,
int32_t  rowCount,
int32_t  cellIndex,
int32_t  cellCount 
)
protected

◆ Clone()

System::SharedPtr<System::Object> Aspose::Pdf::Cell::Clone ( )
virtual

Clone the cell.

Returns
The cloned object

Implements System::ICloneable.

◆ Deserialize()

void Aspose::Pdf::Cell::Deserialize ( System::SharedPtr< System::Xml::XmlReader reader)
protected

◆ DrawBackGround()

void Aspose::Pdf::Cell::DrawBackGround ( System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>>  list,
double  roundedBorderRadius 
)
protected

◆ get_Alignment()

HorizontalAlignment Aspose::Pdf::Cell::get_Alignment ( )

Gets the alignment.

◆ get_BackgroundColor()

System::SharedPtr<Color> Aspose::Pdf::Cell::get_BackgroundColor ( )

Gets the background color.

◆ get_BackgroundImageFile()

System::String Aspose::Pdf::Cell::get_BackgroundImageFile ( )

Gets the background image file.

◆ get_Border()

System::SharedPtr<BorderInfo> Aspose::Pdf::Cell::get_Border ( )

Gets the border.

◆ get_ColSpan()

int32_t Aspose::Pdf::Cell::get_ColSpan ( )

Gets the column span.

◆ get_DefaultCellTextState()

System::SharedPtr<Text::TextState> Aspose::Pdf::Cell::get_DefaultCellTextState ( )

Gets the default cell text state.

◆ get_Height()

double Aspose::Pdf::Cell::get_Height ( )
protected

Gets the column height(processed internally).

◆ get_IsHeightExceedSize()

bool Aspose::Pdf::Cell::get_IsHeightExceedSize ( )
protected

Gets the is height exceed size(processed internally).

◆ get_IsHorizontalAlignmentSet()

bool Aspose::Pdf::Cell::get_IsHorizontalAlignmentSet ( )
protected

Gets is horizontal aligmnent set.

◆ get_IsInsertedInternally()

bool Aspose::Pdf::Cell::get_IsInsertedInternally ( )
protected

Gets the cell inserted internally(processed internally).

◆ get_IsLastSpannedCell()

bool Aspose::Pdf::Cell::get_IsLastSpannedCell ( )
protected

Gets cell is last spanned for disable right border(processed internally).

◆ get_IsNoBorder()

bool Aspose::Pdf::Cell::get_IsNoBorder ( )

Gets the cell have border.

◆ get_IsNothingWrited()

bool Aspose::Pdf::Cell::get_IsNothingWrited ( )
protected

Gets is nothing write for this property.

◆ get_IsRightBorderOpened()

bool Aspose::Pdf::Cell::get_IsRightBorderOpened ( )
protected

Gets is right border opened(processed internally).

◆ get_IsSpanAdditionalCell()

bool Aspose::Pdf::Cell::get_IsSpanAdditionalCell ( )
protected

Gets the row span additional cell(processed internally).

◆ get_IsWordWrapped()

bool Aspose::Pdf::Cell::get_IsWordWrapped ( )

Gets the cell's text word wrapped.

◆ get_Margin()

System::SharedPtr<MarginInfo> Aspose::Pdf::Cell::get_Margin ( )

Gets the padding.

◆ get_Paragraphs()

System::SharedPtr<Aspose::Pdf::Paragraphs> Aspose::Pdf::Cell::get_Paragraphs ( )

Gets the cell's formatted text.

◆ get_ProcessedParagraphsCount()

int32_t Aspose::Pdf::Cell::get_ProcessedParagraphsCount ( )
protected

Gets processed paragraphs for (row.IsRowBroken property).

◆ get_Rect()

System::SharedPtr<Rectangle> Aspose::Pdf::Cell::get_Rect ( )
protected

Gets cell rect.

◆ get_RowSpan()

int32_t Aspose::Pdf::Cell::get_RowSpan ( )

Gets the row span.

◆ get_VerticalAlignment()

Aspose::Pdf::VerticalAlignment Aspose::Pdf::Cell::get_VerticalAlignment ( )

Gets the vertical alignment.

◆ get_Width()

double Aspose::Pdf::Cell::get_Width ( )

Gets the column width.

◆ GetOperators()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator> > > Aspose::Pdf::Cell::GetOperators ( System::SharedPtr< Table table,
System::SharedPtr< Page page,
double  roundedBorderRadius,
double  pureHeight,
bool  isCellBroken 
)
protected

Adds graphic element into the page's content.

Parameters
tableThe table
pageThe page
roundedBorderRadiusThe radius for rounded borders
pureHeightThe pure cell height without borders
isCellBrokenIs cell is child of broken row

◆ GetTableFromParagraphs()

System::SharedPtr<Table> Aspose::Pdf::Cell::GetTableFromParagraphs ( )
protected

Get table from paragraphs.

◆ Serialize()

void Aspose::Pdf::Cell::Serialize ( System::SharedPtr< System::Xml::XmlTextWriter writer)
protected

◆ set_Alignment()

void Aspose::Pdf::Cell::set_Alignment ( HorizontalAlignment  value)

Sets the alignment.

◆ set_BackgroundColor()

void Aspose::Pdf::Cell::set_BackgroundColor ( System::SharedPtr< Color value)

Sets the background color.

◆ set_BackgroundImageFile()

void Aspose::Pdf::Cell::set_BackgroundImageFile ( System::String  value)

Sets the background image file.

◆ set_Border()

void Aspose::Pdf::Cell::set_Border ( System::SharedPtr< BorderInfo value)

Sets the border.

◆ set_ColSpan()

void Aspose::Pdf::Cell::set_ColSpan ( int32_t  value)

Sets the column span.

◆ set_DefaultCellTextState()

void Aspose::Pdf::Cell::set_DefaultCellTextState ( System::SharedPtr< Text::TextState value)

Sets the default cell text state.

◆ set_Height()

void Aspose::Pdf::Cell::set_Height ( double  value)
protected

Sets the column height(processed internally).

◆ set_IsHeightExceedSize()

void Aspose::Pdf::Cell::set_IsHeightExceedSize ( bool  value)
protected

Sets the is height exceed size(processed internally).

◆ set_IsHorizontalAlignmentSet()

void Aspose::Pdf::Cell::set_IsHorizontalAlignmentSet ( bool  value)
protected

Sets is horizontal aligmnent set.

◆ set_IsInsertedInternally()

void Aspose::Pdf::Cell::set_IsInsertedInternally ( bool  value)
protected

Sets the cell inserted internally(processed internally).

◆ set_IsLastSpannedCell()

void Aspose::Pdf::Cell::set_IsLastSpannedCell ( bool  value)
protected

Sets cell is last spanned for disable right border(processed internally).

◆ set_IsNoBorder()

void Aspose::Pdf::Cell::set_IsNoBorder ( bool  value)

Sets the cell have border.

◆ set_IsNothingWrited()

void Aspose::Pdf::Cell::set_IsNothingWrited ( bool  value)
protected

Sets is nothing write for this property.

◆ set_IsSpanAdditionalCell()

void Aspose::Pdf::Cell::set_IsSpanAdditionalCell ( bool  value)
protected

Sets the row span additional cell(processed internally).

◆ set_IsWordWrapped()

void Aspose::Pdf::Cell::set_IsWordWrapped ( bool  value)

Sets the cell's text word wrapped.

◆ set_Margin()

void Aspose::Pdf::Cell::set_Margin ( System::SharedPtr< MarginInfo value)

Sets the padding.

◆ set_Paragraphs()

void Aspose::Pdf::Cell::set_Paragraphs ( System::SharedPtr< Aspose::Pdf::Paragraphs value)

Sets the cell's formatted text.

◆ set_Rect()

void Aspose::Pdf::Cell::set_Rect ( System::SharedPtr< Rectangle value)
protected

Gets cell rect.

◆ set_RowSpan()

void Aspose::Pdf::Cell::set_RowSpan ( int32_t  value)

Sets the row span.

◆ set_VerticalAlignment()

void Aspose::Pdf::Cell::set_VerticalAlignment ( Aspose::Pdf::VerticalAlignment  value)

Sets the vertical alignment.

◆ set_Width()

void Aspose::Pdf::Cell::set_Width ( double  value)
protected

Sets the column width.