Portion Class

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

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.5.0.0 (22.5)
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
Serves as the default hash function.
(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
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveField
Converts this field portion to the simple portion.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also