Aspose::Slides::Paragraph Class Referencefinal

Represents a paragraph of text. More...

#include <Paragraph.h>

Inherits Aspose::Slides::IParagraph, Aspose::Slides::Patterns::IObservable, and Aspose::Slides::IDOMObject.

Public Member Functions

System::SharedPtr< IPortionCollectionget_Portions () override
 Returns the collection of a text portions. Read-only IPortionCollection. More...
 
System::SharedPtr< IParagraphFormatget_ParagraphFormat () override
 Returns the formatting object for this paragraph. Read-only IParagraphFormat. More...
 
System::String get_Text () override
 Gets the the plain text of a paragraph. Read System::String. More...
 
void set_Text (System::String value) override
 Sets the the plain text of a paragraph. Write System::String. More...
 
System::SharedPtr< IPortionFormatget_EndParagraphPortionFormat () override
 Specifies the portion properties that are to be used if another portion is inserted after the last one. More...
 
void set_EndParagraphPortionFormat (System::SharedPtr< IPortionFormat > value) override
 Specifies the portion properties that are to be used if another portion is inserted after the last one. More...
 
 Paragraph ()
 Initializes a new instance of the Paragraph class with default properties. More...
 
 Paragraph (System::SharedPtr< Paragraph > para)
 Copy constructor that initializes a new instance of a Paragraph class. More...
 
void JoinPortionsWithSameFormatting () override
 Joins runs with same formatting. More...
 
System::Drawing::RectangleF GetRect () override
 Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones. More...
 
virtual System::SharedPtr< IPortionCollectionget_Portions ()=0
 Returns the collection of a text portions. Read-only IPortionCollection. More...
 
virtual System::SharedPtr< IParagraphFormatget_ParagraphFormat ()=0
 Returns the formatting object for this paragraph. Read-only IParagraphFormat. More...
 
virtual System::String get_Text ()=0
 Gets the the plain text of a paragraph. Read System::String. More...
 
virtual void set_Text (System::String value)=0
 Sets the the plain text of a paragraph. Write System::String. More...
 
virtual System::SharedPtr< IPortionFormatget_EndParagraphPortionFormat ()=0
 Specifies the portion properties that are to be used if another portion is inserted after the last one. More...
 
virtual void set_EndParagraphPortionFormat (System::SharedPtr< IPortionFormat > value)=0
 Specifies the portion properties that are to be used if another portion is inserted after the last one. More...
 
virtual void JoinPortionsWithSameFormatting ()=0
 Joins runs with same formatting. More...
 
virtual System::Drawing::RectangleF GetRect ()=0
 Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones. More...
 
virtual System::SharedPtr< IBaseSlideget_Slide ()=0
 Returns the base slide. Read-only IBaseSlide. More...
 
virtual System::SharedPtr< IPresentationget_Presentation ()=0
 Returns the presentation. Read-only IPresentation. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 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...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual 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 bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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...
 
- Public Member Functions inherited from Aspose::Slides::Patterns::IObservable
virtual void Subscribe (System::SharedPtr< IObserver > observer)=0
 
virtual void Unsubscribe (System::SharedPtr< IObserver > observer)=0
 
virtual System::SharedPtr< IDOMObjectget_Parent_Immediate ()=0
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 

Protected Member Functions

virtual ~Paragraph ()
 

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...
 
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...
 

Detailed Description

Represents a paragraph of text.

Constructor & Destructor Documentation

◆ Paragraph() [1/2]

Aspose::Slides::Paragraph::Paragraph ( )

Initializes a new instance of the Paragraph class with default properties.

◆ Paragraph() [2/2]

Aspose::Slides::Paragraph::Paragraph ( System::SharedPtr< Paragraph para)

Copy constructor that initializes a new instance of a Paragraph class.

◆ ~Paragraph()

virtual Aspose::Slides::Paragraph::~Paragraph ( )
protectedvirtual

Member Function Documentation

◆ get_EndParagraphPortionFormat()

System::SharedPtr< IPortionFormat > Aspose::Slides::Paragraph::get_EndParagraphPortionFormat ( )
overridevirtual

Specifies the portion properties that are to be used if another portion is inserted after the last one.

Implements Aspose::Slides::IParagraph.

◆ get_ParagraphFormat()

System::SharedPtr< IParagraphFormat > Aspose::Slides::Paragraph::get_ParagraphFormat ( )
overridevirtual

Returns the formatting object for this paragraph. Read-only IParagraphFormat.

The formatting object contains the formatting parameters defined for the current paragraph only, inherited data is not applied.

In order to get the effective values including inherited ones use the ParagraphFormat::GetEffective method.

Implements Aspose::Slides::IParagraph.

◆ get_Portions()

System::SharedPtr< IPortionCollection > Aspose::Slides::Paragraph::get_Portions ( )
overridevirtual

Returns the collection of a text portions. Read-only IPortionCollection.

Implements Aspose::Slides::IParagraph.

◆ get_Text()

System::String Aspose::Slides::Paragraph::get_Text ( )
overridevirtual

Gets the the plain text of a paragraph. Read System::String.

The text.

Implements Aspose::Slides::IParagraph.

◆ GetRect()

System::Drawing::RectangleF Aspose::Slides::Paragraph::GetRect ( )
overridevirtual

Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.

Implements Aspose::Slides::IParagraph.

◆ JoinPortionsWithSameFormatting()

void Aspose::Slides::Paragraph::JoinPortionsWithSameFormatting ( )
overridevirtual

Joins runs with same formatting.

Implements Aspose::Slides::IParagraph.

◆ set_EndParagraphPortionFormat()

void Aspose::Slides::Paragraph::set_EndParagraphPortionFormat ( System::SharedPtr< IPortionFormat value)
overridevirtual

Specifies the portion properties that are to be used if another portion is inserted after the last one.

Implements Aspose::Slides::IParagraph.

◆ set_Text()

void Aspose::Slides::Paragraph::set_Text ( System::String  value)
overridevirtual

Sets the the plain text of a paragraph. Write System::String.

The text.

Implements Aspose::Slides::IParagraph.