Represents a portion of text inside a text paragraph. More...

Inherits Aspose::Slides::IPortion, and Aspose::Slides::IDOMObject.

Public Member Functions

System::SharedPtr< IPortionFormatget_PortionFormat ()
 Returns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied. Read-only IPortionFormat. More...
 
void _anonymous_method_0 (System::SharedPtr< IPortionFormat > registryReference)
 
System::String get_Text ()
 Gets the plain text of a portion. Read System::String. More...
 
void set_Text (System::String value)
 Sets the plain text of a portion. Write System::String. More...
 
System::SharedPtr< IFieldget_Field ()
 Returns a field of this portion. Read-only IField. More...
 
System::SharedPtr< IBaseSlideget_Slide ()
 Returns the parent slide of a text. Read-only BaseSlide. More...
 
System::SharedPtr< IPresentationget_Presentation ()
 Returns the parent presentation of a text. Read-only IPresentation. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
 Portion ()
 Initializes a new instance of the Portion class. More...
 
 Portion (System::String str)
 Initializes a new instance of the Portion class. More...
 
 Portion (System::SharedPtr< Portion > portion)
 Initializes a new instance of the Portion class. More...
 
System::SharedPtr< IPortionFormatEffectiveDataCreatePortionFormatEffective ()
 Creates and returns PortionFormatEffectiveData object which contains current portion formatting properties, including inherited. More...
 
void AddField (System::SharedPtr< IFieldType > fieldType)
 Converts this portion to the automaticaly updated field. More...
 
void AddField (System::String internalString)
 Converts this portion to the automaticaly updated field. More...
 
void RemoveField ()
 Converts this field portion to the simple portion. More...
 
System::Drawing::PointF GetCoordinates ()
 Get coordinates of the beginning of the portion. The X coordinate of point represents the portion beginning from the first character including left side bearing. The Y coordinate includes top side bearing. 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 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)
 

Protected Member Functions

System::SharedPtr< Aspose::Slides::PortionFormatget_PortionFormatInternal ()
 
bool get_IsField ()
 
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_IsNonEmpty ()
 Fast method determines is portion non empty. Read-only bool. More...
 
System::SharedPtr< Portionget_SmartArtShapePortion ()
 Corresponding portion in smart art root shape TextFrameCompounded. Read Portion More...
 
void set_SmartArtShapePortion (System::SharedPtr< Portion > value)
 Corresponding portion in smart art root shape TextFrameCompounded. Write Portion More...
 
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< IPresentationComponentget_Parent_IPresentationComponent ()
 
System::SharedPtr< ISlideComponentget_Parent_ISlideComponent ()
 
System::SharedPtr< Paragraphget_ParentParagraph ()
 
System::SharedPtr< Aspose::Slides::PortionFormatGetPortionFormatRawRef ()
 
void CopyFormattingFrom (System::SharedPtr< Portion > source)
 
 Portion (System::SharedPtr< Aspose::Slides::PortionFormat > portionProps)
 
System::String GetTextWithFields (System::SharedPtr< Aspose::Slides::Presentation > pres, bool isFieldVisible, int32_t slideNumber)
 Returns portion text as it would displayed on specified slide used to render fields from master and layout slides on a slide. More...
 
System::SharedPtr< PortionCreateCombinedWith (System::SharedPtr< Aspose::Slides::PortionFormat > props)
 
System::SharedPtr< PortionFoldInheritance (System::SharedPtr< Aspose::Slides::PortionFormat > props, System::SharedPtr< IPresentation > pres, bool isFieldVisible, int32_t slideNumber)
 
void TextInternalChanged ()
 
void SetParent (System::SharedPtr< PortionCollection > parentImmediate)
 
void ClearFormatEffectiveDataCache ()
 

Static Protected Member Functions

static System::SharedPtr< PortionCreateWithReferencedPortionFormat (System::SharedPtr< Aspose::Slides::PortionFormat > portionFormatRef)
 

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

Constructor & Destructor Documentation

◆ Portion() [1/4]

Aspose::Slides::Portion::Portion ( )

Initializes a new instance of the Portion class.

◆ Portion() [2/4]

Aspose::Slides::Portion::Portion ( System::String  str)

Initializes a new instance of the Portion class.

◆ Portion() [3/4]

Aspose::Slides::Portion::Portion ( System::SharedPtr< Portion portion)

Initializes a new instance of the Portion class.

◆ Portion() [4/4]

Aspose::Slides::Portion::Portion ( System::SharedPtr< Aspose::Slides::PortionFormat portionProps)
protected

Member Function Documentation

◆ _anonymous_method_0()

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

◆ AddField() [1/2]

void Aspose::Slides::Portion::AddField ( System::SharedPtr< IFieldType fieldType)
virtual

Converts this portion to the automaticaly updated field.

Implements Aspose::Slides::IPortion.

◆ AddField() [2/2]

void Aspose::Slides::Portion::AddField ( System::String  internalString)
virtual

Converts this portion to the automaticaly updated field.

Parameters
internalStringInternal name of FieldType.

Implements Aspose::Slides::IPortion.

◆ ClearFormatEffectiveDataCache()

void Aspose::Slides::Portion::ClearFormatEffectiveDataCache ( )
protected

◆ CopyFormattingFrom()

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

◆ CreateCombinedWith()

System::SharedPtr<Portion> Aspose::Slides::Portion::CreateCombinedWith ( System::SharedPtr< Aspose::Slides::PortionFormat props)
protected

◆ CreatePortionFormatEffective()

System::SharedPtr<IPortionFormatEffectiveData> Aspose::Slides::Portion::CreatePortionFormatEffective ( )
virtual

Creates and returns PortionFormatEffectiveData object which contains current portion formatting properties, including inherited.

Deprecated:
Use Portion.PortionFormat.GetEffective() instead. The method will be removed after release of version 20.8.
Returns
A PortionFormatEffectiveData instance.

Implements Aspose::Slides::IPortion.

◆ CreateWithReferencedPortionFormat()

static System::SharedPtr<Portion> Aspose::Slides::Portion::CreateWithReferencedPortionFormat ( System::SharedPtr< Aspose::Slides::PortionFormat portionFormatRef)
staticprotected

◆ FoldInheritance()

System::SharedPtr<Portion> Aspose::Slides::Portion::FoldInheritance ( System::SharedPtr< Aspose::Slides::PortionFormat props,
System::SharedPtr< IPresentation pres,
bool  isFieldVisible,
int32_t  slideNumber 
)
protected

◆ get_Field()

System::SharedPtr<IField> Aspose::Slides::Portion::get_Field ( )
virtual

Returns a field of this portion. Read-only IField.

Implements Aspose::Slides::IPortion.

◆ get_IsField()

bool Aspose::Slides::Portion::get_IsField ( )
protected

◆ get_IsNonEmpty()

bool Aspose::Slides::Portion::get_IsNonEmpty ( )
protected

Fast method determines is portion non empty. Read-only bool.

◆ get_MetroBlobRequired()

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

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

◆ get_Parent_Immediate()

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

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_Parent_IPresentationComponent()

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

◆ get_Parent_ISlideComponent()

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

◆ get_ParentParagraph()

System::SharedPtr<Paragraph> Aspose::Slides::Portion::get_ParentParagraph ( )
protected

◆ get_PortionFormat()

System::SharedPtr<IPortionFormat> Aspose::Slides::Portion::get_PortionFormat ( )
virtual

Returns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied. Read-only IPortionFormat.

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

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

Implements Aspose::Slides::IPortion.

◆ get_PortionFormatInternal()

System::SharedPtr<Aspose::Slides::PortionFormat> Aspose::Slides::Portion::get_PortionFormatInternal ( )
protected

◆ get_Presentation()

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

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

Implements Aspose::Slides::IPresentationComponent.

◆ get_Slide()

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

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

Implements Aspose::Slides::ISlideComponent.

◆ get_SmartArtShapePortion()

System::SharedPtr<Portion> Aspose::Slides::Portion::get_SmartArtShapePortion ( )
protected

Corresponding portion in smart art root shape TextFrameCompounded. Read Portion

◆ get_Text()

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

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

The text.

Implements Aspose::Slides::IPortion.

◆ get_TextInternal()

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

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

◆ GetCoordinates()

System::Drawing::PointF Aspose::Slides::Portion::GetCoordinates ( )
virtual

Get coordinates of the beginning of the portion. The X coordinate of point represents the portion beginning from the first character including left side bearing. The Y coordinate includes top side bearing.

Implements Aspose::Slides::IPortion.

◆ GetPortionFormatRawRef()

System::SharedPtr<Aspose::Slides::PortionFormat> Aspose::Slides::Portion::GetPortionFormatRawRef ( )
protected

◆ GetTextWithFields()

System::String Aspose::Slides::Portion::GetTextWithFields ( System::SharedPtr< Aspose::Slides::Presentation pres,
bool  isFieldVisible,
int32_t  slideNumber 
)
protected

Returns portion text as it would displayed on specified slide used to render fields from master and layout slides on a slide.

Parameters
pres
isFieldVisible
slideNumberRepresents the current slide number in the presentation starting from first slide number
Returns

◆ RemoveField()

void Aspose::Slides::Portion::RemoveField ( )
virtual

Converts this field portion to the simple portion.

Implements Aspose::Slides::IPortion.

◆ set_SmartArtShapePortion()

void Aspose::Slides::Portion::set_SmartArtShapePortion ( System::SharedPtr< Portion value)
protected

Corresponding portion in smart art root shape TextFrameCompounded. Write Portion

◆ set_Text()

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

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

The text.

Implements Aspose::Slides::IPortion.

◆ set_TextInternal()

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

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

◆ SetParent()

void Aspose::Slides::Portion::SetParent ( System::SharedPtr< PortionCollection parentImmediate)
protected

◆ TextInternalChanged()

void Aspose::Slides::Portion::TextInternalChanged ( )
protected