Portion Class

Represents a portion of text inside a text paragraph.
Inheritance Hierarchy

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
public class Portion : IPortion, ISlideComponent, 
	IPresentationComponent

The Portion type exposes the following members.

Constructors
  NameDescription
Public methodPortion
Initializes a new instance of the Portion class.
Public methodPortion(String)
Initializes a new instance of the Portion class.
Public methodPortion(Portion)
Initializes a new instance of the Portion class.
Properties
  NameDescription
Public propertyField
Returns a field of this portion. Read-only IField.
Public propertyPortionFormat
Returns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied. Read-only IPortionFormat.
Public propertyText
Gets or sets the plain text of a portion. Read/write String.
Methods
  NameDescription
Public methodAddField(String)
Converts this portion to the automaticaly updated field.
Public methodAddField(IFieldType)
Converts this portion to the automaticaly updated field.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetCoordinates
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.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetRect
Get coordinates of rect that bounds portion. The rect includes all the lines of text in portion, including empty ones.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveField
Converts this field portion to the simple portion.
Public methodToString (Inherited from Object.)
See Also