Aspose::Slides::Paragraph Class Referencefinal

Represents a paragraph of text. More...

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

Classes

class  TextPropertiesVersion
 

Public Member Functions

System::SharedPtr< IPortionCollectionget_Portions ()
 Returns the collection of a text portions. Read-only IPortionCollection. More...
 
System::SharedPtr< IParagraphFormatget_ParagraphFormat ()
 Returns the formatting object for this paragraph. Read-only IParagraphFormat. More...
 
System::String get_Text ()
 Gets the the plain text of a paragraph. Read System::String. More...
 
void set_Text (System::String value)
 Sets the the plain text of a paragraph. Write System::String. More...
 
void _anonymous_method_0 (System::SharedPtr< IPortionFormat > registryReference)
 
System::SharedPtr< IPortionFormatget_EndParagraphPortionFormat ()
 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)
 Specifies the portion properties that are to be used if another portion is inserted after the last one. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IBaseSlideget_Slide ()
 Returns the parent slide of a paragraph. Read-only BaseSlide. More...
 
System::SharedPtr< IPresentationget_Presentation ()
 Returns the parent presentation of a paragraph. Read-only IPresentation. 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 ()
 Joins runs with same formatting. More...
 
System::SharedPtr< IParagraphFormatEffectiveDataCreateParagraphFormatEffective ()
 Creates immutable object which contains effective paragraph formatting properties with the inheritance applied. More...
 
System::Drawing::RectangleF GetRect ()
 Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones. More...
 
void Subscribe (System::SharedPtr< Patterns::IObserver > observer)
 
void Unsubscribe (System::SharedPtr< Patterns::IObserver > observer)
 
- 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 refernce 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 int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_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 (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)
 
- 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
 

Protected Member Functions

System::SharedPtr< Aspose::Slides::ParagraphFormatget_ParagraphFormatInternal ()
 
System::String get_TextInternal ()
 This property is same as Text property but without evaluation period limitations More...
 
void set_TextInternal (System::String value)
 This property is same as Text property but without evaluation period limitations More...
 
bool get_SoftParagraph ()
 
void set_SoftParagraph (bool value)
 
bool get_MetroBlobRequired ()
 Shows if saving the shape containing this object to ppt requires GroupShapeMetroBlob record to save all shape's properties correctly More...
 
System::SharedPtr< ParagraphCollectionget_ParentParagraphCollection ()
 
System::SharedPtr< IPresentationComponentget_Parent_IPresentationComponent ()
 
System::SharedPtr< ISlideComponentget_Parent_ISlideComponent ()
 
System::SharedPtr< IPortionFormatGetEndParagraphRunPropertiesRawRef ()
 
 Paragraph (System::SharedPtr< Aspose::Slides::ParagraphFormat > paraFormat)
 
 Paragraph (System::SharedPtr< ParagraphFormatEffectiveData > paraFormat)
 
void CopyDataFrom (System::SharedPtr< Paragraph > source)
 
void CopyFormattingFrom (System::SharedPtr< Paragraph > source)
 
void ParagraphChanged ()
 
void PortionChanged (System::SharedPtr< IPortionFormat > props)
 
System::SharedPtr< ParagraphCreateCombinedWith (System::SharedPtr< IParagraphFormat > props)
 
System::ArrayPtr< System::SharedPtr< Paragraph > > FoldInheritance (System::SharedPtr< IParagraphFormat > props, System::SharedPtr< Paragraph > prevParagraph, System::SharedPtr< IPresentation > pres, bool isFieldVisible, int32_t slideNumber)
 
int32_t GetParagraphIndex ()
 Return index of the paragraph in the parent collection. More...
 
void CorrectHyperlinkedText ()
 
void EnsureBelongsToTextFrame ()
 
void SetParent (System::SharedPtr< ParagraphCollection > parentImmediate)
 
void ClearEffective ()
 

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 paragraph of text.

Constructor & Destructor Documentation

◆ Paragraph() [1/4]

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

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

◆ Paragraph() [2/4]

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

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

◆ Paragraph() [3/4]

Aspose::Slides::Paragraph::Paragraph ( System::SharedPtr< Aspose::Slides::ParagraphFormat paraFormat)
protected

◆ Paragraph() [4/4]

Aspose::Slides::Paragraph::Paragraph ( System::SharedPtr< ParagraphFormatEffectiveData >  paraFormat)
protected

Member Function Documentation

◆ _anonymous_method_0()

void Aspose::Slides::Paragraph::_anonymous_method_0 ( System::SharedPtr< IPortionFormat registryReference)

◆ ClearEffective()

void Aspose::Slides::Paragraph::ClearEffective ( )
protected

◆ CopyDataFrom()

void Aspose::Slides::Paragraph::CopyDataFrom ( System::SharedPtr< Paragraph source)
protected

◆ CopyFormattingFrom()

void Aspose::Slides::Paragraph::CopyFormattingFrom ( System::SharedPtr< Paragraph source)
protected

◆ CorrectHyperlinkedText()

void Aspose::Slides::Paragraph::CorrectHyperlinkedText ( )
protected

◆ CreateCombinedWith()

System::SharedPtr<Paragraph> Aspose::Slides::Paragraph::CreateCombinedWith ( System::SharedPtr< IParagraphFormat props)
protected

◆ CreateParagraphFormatEffective()

System::SharedPtr<IParagraphFormatEffectiveData> Aspose::Slides::Paragraph::CreateParagraphFormatEffective ( )
virtual

Creates immutable object which contains effective paragraph formatting properties with the inheritance applied.

Deprecated:
Use Paragraph.ParagraphFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
A ParagraphFormatEffectiveData.

Implements Aspose::Slides::IParagraph.

◆ EnsureBelongsToTextFrame()

void Aspose::Slides::Paragraph::EnsureBelongsToTextFrame ( )
protected

◆ FoldInheritance()

System::ArrayPtr<System::SharedPtr<Paragraph> > Aspose::Slides::Paragraph::FoldInheritance ( System::SharedPtr< IParagraphFormat props,
System::SharedPtr< Paragraph prevParagraph,
System::SharedPtr< IPresentation pres,
bool  isFieldVisible,
int32_t  slideNumber 
)
protected

◆ get_EndParagraphPortionFormat()

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

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

Implements Aspose::Slides::IParagraph.

◆ get_MetroBlobRequired()

bool Aspose::Slides::Paragraph::get_MetroBlobRequired ( )
protected

Shows if saving the shape containing this object to ppt requires GroupShapeMetroBlob record to save all shape's properties correctly

◆ get_ParagraphFormat()

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

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

System::SharedPtr<Aspose::Slides::ParagraphFormat> Aspose::Slides::Paragraph::get_ParagraphFormatInternal ( )
protected

◆ get_Parent_Immediate()

System::SharedPtr<IDOMObject> Aspose::Slides::Paragraph::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_Parent_IPresentationComponent()

System::SharedPtr<IPresentationComponent> Aspose::Slides::Paragraph::get_Parent_IPresentationComponent ( )
protected

◆ get_Parent_ISlideComponent()

System::SharedPtr<ISlideComponent> Aspose::Slides::Paragraph::get_Parent_ISlideComponent ( )
protected

◆ get_ParentParagraphCollection()

System::SharedPtr<ParagraphCollection> Aspose::Slides::Paragraph::get_ParentParagraphCollection ( )
protected

◆ get_Portions()

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

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

Implements Aspose::Slides::IParagraph.

◆ get_Presentation()

System::SharedPtr<IPresentation> Aspose::Slides::Paragraph::get_Presentation ( )
virtual

Returns the parent presentation of a paragraph. Read-only IPresentation.

Implements Aspose::Slides::IPresentationComponent.

◆ get_Slide()

System::SharedPtr<IBaseSlide> Aspose::Slides::Paragraph::get_Slide ( )
virtual

Returns the parent slide of a paragraph. Read-only BaseSlide.

Implements Aspose::Slides::ISlideComponent.

◆ get_SoftParagraph()

bool Aspose::Slides::Paragraph::get_SoftParagraph ( )
protected

◆ get_Text()

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

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

The text.

Implements Aspose::Slides::IParagraph.

◆ get_TextInternal()

System::String Aspose::Slides::Paragraph::get_TextInternal ( )
protected

This property is same as Text property but without evaluation period limitations

◆ GetEndParagraphRunPropertiesRawRef()

System::SharedPtr<IPortionFormat> Aspose::Slides::Paragraph::GetEndParagraphRunPropertiesRawRef ( )
protected

◆ GetParagraphIndex()

int32_t Aspose::Slides::Paragraph::GetParagraphIndex ( )
protected

Return index of the paragraph in the parent collection.

Returns
Index of the paragraph in the parent collection or -1 if the paragraph's parent collection is unassigned.

◆ GetRect()

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

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

Joins runs with same formatting.

Implements Aspose::Slides::IParagraph.

◆ ParagraphChanged()

void Aspose::Slides::Paragraph::ParagraphChanged ( )
protected

◆ PortionChanged()

void Aspose::Slides::Paragraph::PortionChanged ( System::SharedPtr< IPortionFormat props)
protected

◆ set_EndParagraphPortionFormat()

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

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

Implements Aspose::Slides::IParagraph.

◆ set_SoftParagraph()

void Aspose::Slides::Paragraph::set_SoftParagraph ( bool  value)
protected

◆ set_Text()

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

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

The text.

Implements Aspose::Slides::IParagraph.

◆ set_TextInternal()

void Aspose::Slides::Paragraph::set_TextInternal ( System::String  value)
protected

This property is same as Text property but without evaluation period limitations

◆ SetParent()

void Aspose::Slides::Paragraph::SetParent ( System::SharedPtr< ParagraphCollection parentImmediate)
protected

◆ Subscribe()

void Aspose::Slides::Paragraph::Subscribe ( System::SharedPtr< Patterns::IObserver observer)

◆ Unsubscribe()

void Aspose::Slides::Paragraph::Unsubscribe ( System::SharedPtr< Patterns::IObserver observer)