Aspose::Pdf::Row Class Referencefinal

Represents a row of the table. More...

#include "Row.h"

Inherits System::ICloneable.

Public Member Functions

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 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< Aspose::Pdf::Cells > & get_Cells () const
 Gets the cells of the row. More...
 
ASPOSE_PDF_SHARED_API void set_Cells (System::SharedPtr< Aspose::Pdf::Cells > value)
 Gets the cells of the row. More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< BorderInfo > & get_DefaultCellBorder () const
 Gets default cell border; More...
 
ASPOSE_PDF_SHARED_API void set_DefaultCellBorder (System::SharedPtr< BorderInfo > value)
 Gets default cell border; More...
 
ASPOSE_PDF_SHARED_API double get_MinRowHeight () const
 Gets height for row; More...
 
ASPOSE_PDF_SHARED_API void set_MinRowHeight (double value)
 Gets height for row; More...
 
ASPOSE_PDF_SHARED_API double get_FixedRowHeight () const
 Gets fixed row height - row may have fixed height; More...
 
ASPOSE_PDF_SHARED_API void set_FixedRowHeight (double value)
 Gets fixed row height - row may have fixed height; More...
 
ASPOSE_PDF_SHARED_API bool get_IsInNewPage () const
 Gets fixed row is in new page - page with this property should be printed to next page Default false; More...
 
ASPOSE_PDF_SHARED_API void set_IsInNewPage (bool value)
 Gets fixed row is in new page - page with this property should be printed to next page Default false; More...
 
ASPOSE_PDF_SHARED_API bool get_IsRowBroken () const
 Gets is row can be broken between two pages More...
 
ASPOSE_PDF_SHARED_API void set_IsRowBroken (bool value)
 Gets is row can be broken between two pages More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Text::TextStateget_DefaultCellTextState ()
 Gets default text state for row cells More...
 
ASPOSE_PDF_SHARED_API void set_DefaultCellTextState (System::SharedPtr< Text::TextState > value)
 Sets default text state for row cells More...
 
ASPOSE_PDF_SHARED_API const System::SharedPtr< MarginInfo > & get_DefaultCellPadding () const
 Gets default margin for row cells More...
 
ASPOSE_PDF_SHARED_API void set_DefaultCellPadding (System::SharedPtr< MarginInfo > value)
 Sets default margin for row cells 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 Row ()
 Initializes a new instance of the Row class. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::ObjectClone () override
 Clone the row. 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

int32_t get_CellCount () const
 Gets cell count for current page(for internal use) More...
 
void set_CellCount (int32_t value)
 Sets cell count for current page(for internal use) More...
 
double get_Height () const
 Gets row height(for internal use) More...
 
void set_Height (double value)
 Sets row height(for internal use) More...
 
bool get_IsRowExceedPage () const
 Gets is row exceed page More...
 
double get_Width () const
 Gets row width(for internal use) More...
 
void set_Width (double value)
 Sets row width(for internal use) More...
 
const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > & get_Operators () const
 
void ApplyDefaults (System::SharedPtr< Table > table)
 Apply defaults More...
 
bool Process (System::SharedPtr< Table > table, double &curY, double &curX, bool isCalculatedMode, double realPageWidth, double bottomY, System::SharedPtr< Page > page, int32_t &rowNumber)
 Process row. More...
 
double GetHeight (System::SharedPtr< Table > table, System::SharedPtr< Page > page, double curY, double bottomY)
 
void Serialize (System::SharedPtr< System::Xml::XmlTextWriter > writer)
 
void Deserialize (System::SharedPtr< System::Xml::XmlReader > reader)
 
virtual ASPOSE_PDF_SHARED_API ~Row ()
 

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 row of the table.

Constructor & Destructor Documentation

◆ Row()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Row::Row ( )

Initializes a new instance of the Row class.

◆ ~Row()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Row::~Row ( )
protectedvirtual

Member Function Documentation

◆ ApplyDefaults()

void Aspose::Pdf::Row::ApplyDefaults ( System::SharedPtr< Table table)
protected

Apply defaults

Parameters
tableThe table.

◆ Clone()

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

Clone the row.

Returns
The cloned object

Implements System::ICloneable.

◆ Deserialize()

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

◆ get_BackgroundColor()

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

Gets the background color.

◆ get_Border()

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

Gets the border.

◆ get_CellCount()

int32_t Aspose::Pdf::Row::get_CellCount ( ) const
protected

Gets cell count for current page(for internal use)

◆ get_Cells()

ASPOSE_PDF_SHARED_API const System::SharedPtr<Aspose::Pdf::Cells>& Aspose::Pdf::Row::get_Cells ( ) const

Gets the cells of the row.

◆ get_DefaultCellBorder()

ASPOSE_PDF_SHARED_API const System::SharedPtr<BorderInfo>& Aspose::Pdf::Row::get_DefaultCellBorder ( ) const

Gets default cell border;

◆ get_DefaultCellPadding()

ASPOSE_PDF_SHARED_API const System::SharedPtr<MarginInfo>& Aspose::Pdf::Row::get_DefaultCellPadding ( ) const

Gets default margin for row cells

◆ get_DefaultCellTextState()

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

Gets default text state for row cells

◆ get_FixedRowHeight()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Row::get_FixedRowHeight ( ) const

Gets fixed row height - row may have fixed height;

◆ get_Height()

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

Gets row height(for internal use)

◆ get_IsInNewPage()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Row::get_IsInNewPage ( ) const

Gets fixed row is in new page - page with this property should be printed to next page Default false;

◆ get_IsRowBroken()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Row::get_IsRowBroken ( ) const

Gets is row can be broken between two pages

◆ get_IsRowExceedPage()

bool Aspose::Pdf::Row::get_IsRowExceedPage ( ) const
protected

Gets is row exceed page

◆ get_MinRowHeight()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Row::get_MinRowHeight ( ) const

Gets height for row;

◆ get_Operators()

const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator> > >& Aspose::Pdf::Row::get_Operators ( ) const
protected

◆ get_VerticalAlignment()

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

Gets the vertical alignment.

◆ get_Width()

double Aspose::Pdf::Row::get_Width ( ) const
protected

Gets row width(for internal use)

◆ GetHeight()

double Aspose::Pdf::Row::GetHeight ( System::SharedPtr< Table table,
System::SharedPtr< Page page,
double  curY,
double  bottomY 
)
protected

◆ Process()

bool Aspose::Pdf::Row::Process ( System::SharedPtr< Table table,
double &  curY,
double &  curX,
bool  isCalculatedMode,
double  realPageWidth,
double  bottomY,
System::SharedPtr< Page page,
int32_t &  rowNumber 
)
protected

Process row.

Parameters
tableThe table.
curYThe current Y coordinate.
curXThe current X coordinate.
isCalculatedModeThe calculation mode for nested tables.
realPageWidthThe page width without margins.
bottomYThe min bottom Y.
pageThe page bottom margin.
rowNumberThe row number.

◆ Serialize()

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

◆ set_BackgroundColor()

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

Sets the background color.

◆ set_Border()

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

Sets the border.

◆ set_CellCount()

void Aspose::Pdf::Row::set_CellCount ( int32_t  value)
protected

Sets cell count for current page(for internal use)

◆ set_Cells()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_Cells ( System::SharedPtr< Aspose::Pdf::Cells value)

Gets the cells of the row.

◆ set_DefaultCellBorder()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_DefaultCellBorder ( System::SharedPtr< BorderInfo value)

Gets default cell border;

◆ set_DefaultCellPadding()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_DefaultCellPadding ( System::SharedPtr< MarginInfo value)

Sets default margin for row cells

◆ set_DefaultCellTextState()

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

Sets default text state for row cells

◆ set_FixedRowHeight()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_FixedRowHeight ( double  value)

Gets fixed row height - row may have fixed height;

◆ set_Height()

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

Sets row height(for internal use)

◆ set_IsInNewPage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_IsInNewPage ( bool  value)

Gets fixed row is in new page - page with this property should be printed to next page Default false;

◆ set_IsRowBroken()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_IsRowBroken ( bool  value)

Gets is row can be broken between two pages

◆ set_MinRowHeight()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Row::set_MinRowHeight ( double  value)

Gets height for row;

◆ set_VerticalAlignment()

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

Sets the vertical alignment.

◆ set_Width()

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

Sets row width(for internal use)