Aspose::Pdf::Cell Class Referencefinal

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

#include "Cell.h"

Inherits System::ICloneable.

Public Member Functions

ASPOSE_PDF_SHARED_API bool get_IsNoBorder () const
 Gets the cell have border. More...
 
ASPOSE_PDF_SHARED_API void set_IsNoBorder (bool value)
 Sets the cell have border. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< MarginInfo > & get_Margin () const
 Gets the padding. More...
 
ASPOSE_PDF_SHARED_API void set_Margin (System::SharedPtr< MarginInfo > value)
 Sets the padding. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< BorderInfo > & get_Border () const
 Gets the border. More...
 
ASPOSE_PDF_SHARED_API void set_Border (System::SharedPtr< BorderInfo > value)
 Sets the border. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< Color > & get_BackgroundColor () const
 Gets the background color. More...
 
ASPOSE_PDF_SHARED_API void set_BackgroundColor (System::SharedPtr< Color > value)
 Sets the background color. More...
 
ASPOSE_PDF_SHARED_API System::String get_BackgroundImageFile () const
 Gets the background image file. More...
 
ASPOSE_PDF_SHARED_API void set_BackgroundImageFile (System::String value)
 Sets the background image file. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< Image > & get_BackgroundImage () const
 Gets the background image More...
 
ASPOSE_PDF_SHARED_API void set_BackgroundImage (System::SharedPtr< Image > value)
 Sets the background image More...
 
ASPOSE_PDF_SHARED_API HorizontalAlignment get_Alignment () const
 Gets the alignment. More...
 
ASPOSE_PDF_SHARED_API void set_Alignment (HorizontalAlignment value)
 Sets the alignment. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Text::TextStateget_DefaultCellTextState ()
 Gets the default cell text state. More...
 
ASPOSE_PDF_SHARED_API void set_DefaultCellTextState (System::SharedPtr< Text::TextState > value)
 Sets the default cell text state. More...
 
ASPOSE_PDF_SHARED_API bool get_IsOverrideByFragment () const
 Sets the cell's TextState property is overriden by TextFragment TextState property. More...
 
ASPOSE_PDF_SHARED_API void set_IsOverrideByFragment (bool value)
 Sets the cell's TextState property is overriden by TextFragment TextState property. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< Aspose::Pdf::Paragraphs > & get_Paragraphs () const
 Gets the cell's formatted text. More...
 
ASPOSE_PDF_SHARED_API void set_Paragraphs (System::SharedPtr< Aspose::Pdf::Paragraphs > value)
 Sets the cell's formatted text. More...
 
ASPOSE_PDF_SHARED_API bool get_IsWordWrapped () const
 Gets the cell's text word wrapped. More...
 
ASPOSE_PDF_SHARED_API void set_IsWordWrapped (bool value)
 Sets the cell's text word wrapped. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment get_VerticalAlignment () const
 Gets the vertical alignment. More...
 
ASPOSE_PDF_SHARED_API void set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value)
 Sets the vertical alignment. More...
 
ASPOSE_PDF_SHARED_API int32_t get_ColSpan () const
 Gets the column span. More...
 
ASPOSE_PDF_SHARED_API void set_ColSpan (int32_t value)
 Sets the column span. More...
 
ASPOSE_PDF_SHARED_API int32_t get_RowSpan () const
 Gets the row span. More...
 
ASPOSE_PDF_SHARED_API void set_RowSpan (int32_t value)
 Sets the row span. More...
 
ASPOSE_PDF_SHARED_API double get_Width () const
 Gets the column width. More...
 
ASPOSE_PDF_SHARED_API Cell (System::SharedPtr< Rectangle > rect)
 Initializes a new instance of the Cell class. More...
 
ASPOSE_PDF_SHARED_API Cell ()
 Initializes a new instance of the Cell class. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::ObjectClone () override
 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 reference 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 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. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 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. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

bool get_IsHorizontalAlignmentSet () const
 Gets is horizontal aligmnent set. More...
 
void set_IsHorizontalAlignmentSet (bool value)
 Sets is horizontal aligmnent set. More...
 
int32_t get_ProcessedParagraphsCount () const
 Gets processed paragraphs for (row.IsRowBroken property). More...
 
bool get_IsNothingWrited () const
 Gets is nothing write for this property. More...
 
void set_IsNothingWrited (bool value)
 Sets is nothing write for this property. More...
 
const System::SharedPtr< Rectangle > & get_Rect () const
 Gets cell rect. More...
 
void set_Rect (System::SharedPtr< Rectangle > value)
 Gets cell rect. More...
 
ASPOSE_PDF_SHARED_API void set_Width (double value)
 Sets the column width. More...
 
double get_Height () const
 Gets the column height(processed internally). More...
 
void set_Height (double value)
 Sets the column height(processed internally). More...
 
bool get_IsHeightExceedSize () const
 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 () const
 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_IsLeftBorderOpened () const
 Gets cell is left border opened(processed internally). More...
 
void set_IsLeftBorderOpened (bool value)
 Sets cell is left border opened(processed internally). More...
 
bool get_IsRightBorderOpened () const
 Gets cell is right border opened(processed internally). More...
 
void set_IsRightBorderOpened (bool value)
 Sets cell is right border opened(processed internally). More...
 
bool get_IsInsertedInternally () const
 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, 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 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...
 
- 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 ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a cell of the table's row.

Constructor & Destructor Documentation

◆ Cell() [1/2]

ASPOSE_PDF_SHARED_API 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_SHARED_API 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,
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()

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

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()

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

Gets the alignment.

◆ get_BackgroundColor()

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

Gets the background color.

◆ get_BackgroundImage()

ASPOSE_PDF_SHARED_API const System::SharedPtr<Image>& Aspose::Pdf::Cell::get_BackgroundImage ( ) const

Gets the background image

◆ get_BackgroundImageFile()

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

Gets the background image file.

Deprecated:
Property was expanded please use BackgroundImage

◆ get_Border()

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

Gets the border.

◆ get_ColSpan()

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

Gets the column span.

◆ get_DefaultCellTextState()

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

Gets the default cell text state.

◆ get_Height()

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

Gets the column height(processed internally).

◆ get_IsHeightExceedSize()

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

Gets the is height exceed size(processed internally).

◆ get_IsHorizontalAlignmentSet()

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

Gets is horizontal aligmnent set.

◆ get_IsInsertedInternally()

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

Gets the cell inserted internally(processed internally).

◆ get_IsLeftBorderOpened()

bool Aspose::Pdf::Cell::get_IsLeftBorderOpened ( ) const
protected

Gets cell is left border opened(processed internally).

◆ get_IsNoBorder()

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

Gets the cell have border.

◆ get_IsNothingWrited()

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

Gets is nothing write for this property.

◆ get_IsOverrideByFragment()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Cell::get_IsOverrideByFragment ( ) const

Sets the cell's TextState property is overriden by TextFragment TextState property.

◆ get_IsRightBorderOpened()

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

Gets cell is right border opened(processed internally).

◆ get_IsSpanAdditionalCell()

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

Gets the row span additional cell(processed internally).

◆ get_IsWordWrapped()

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

Gets the cell's text word wrapped.

◆ get_Margin()

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

Gets the padding.

◆ get_Paragraphs()

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

Gets the cell's formatted text.

◆ get_ProcessedParagraphsCount()

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

Gets processed paragraphs for (row.IsRowBroken property).

◆ get_Rect()

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

Gets cell rect.

◆ get_RowSpan()

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

Gets the row span.

◆ get_VerticalAlignment()

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

Gets the vertical alignment.

◆ get_Width()

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

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  pureHeight,
bool  isCellBroken 
)
protected

Adds graphic element into the page's content.

Parameters
tableThe table
pageThe page
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()

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

Sets the alignment.

◆ set_BackgroundColor()

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

Sets the background color.

◆ set_BackgroundImage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Cell::set_BackgroundImage ( System::SharedPtr< Image value)

Sets the background image

◆ set_BackgroundImageFile()

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

Sets the background image file.

Deprecated:
Property was expanded please use BackgroundImage

◆ set_Border()

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

Sets the border.

◆ set_ColSpan()

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

Sets the column span.

◆ set_DefaultCellTextState()

ASPOSE_PDF_SHARED_API 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_IsLeftBorderOpened()

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

Sets cell is left border opened(processed internally).

◆ set_IsNoBorder()

ASPOSE_PDF_SHARED_API 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_IsOverrideByFragment()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Cell::set_IsOverrideByFragment ( bool  value)

Sets the cell's TextState property is overriden by TextFragment TextState property.

◆ set_IsRightBorderOpened()

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

Sets cell is right border opened(processed internally).

◆ set_IsSpanAdditionalCell()

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

Sets the row span additional cell(processed internally).

◆ set_IsWordWrapped()

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

Sets the cell's text word wrapped.

◆ set_Margin()

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

Sets the padding.

◆ set_Paragraphs()

ASPOSE_PDF_SHARED_API 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()

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

Sets the row span.

◆ set_VerticalAlignment()

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

Sets the vertical alignment.

◆ set_Width()

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

Sets the column width.