com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Portion

  • java.lang.Object
    • com.aspose.slides.Portion
    • Constructor Summary

      Constructors 
      Constructor and Description
      Portion()
      Initializes a new instance of the Portion class.
      Portion(Portion portion)
      Initializes a new instance of the Portion class.
      Portion(java.lang.String str)
      Initializes a new instance of the Portion class.
    • Constructor Detail

      • Portion

        public Portion()

        Initializes a new instance of the Portion class.

      • Portion

        public Portion(java.lang.String str)

        Initializes a new instance of the Portion class.

      • Portion

        public Portion(Portion portion)

        Initializes a new instance of the Portion class.

    • Method Detail

      • getPortionFormat

        public final IPortionFormat getPortionFormat()

        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 createPortionFormatEffective() method.

        Specified by:
        getPortionFormat in interface IPortion
      • getText

        public final java.lang.String getText()

        Gets or sets the plain text of a portion. Read/write String.

        Value: The text.
        Specified by:
        getText in interface IPortion
      • setText

        public final void setText(java.lang.String value)

        Gets or sets the plain text of a portion. Read/write String.

        Value: The text.
        Specified by:
        setText in interface IPortion
      • getField

        public final IField getField()

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

        Specified by:
        getField in interface IPortion
      • addField

        public final void addField(IFieldType fieldType)

        Converts this portion to the automaticaly updated field.

        Specified by:
        addField in interface IPortion
      • addField

        public final void addField(java.lang.String internalString)

        Converts this portion to the automaticaly updated field.

        Specified by:
        addField in interface IPortion
        Parameters:
        internalString - Internal name of FieldType.
      • removeField

        public final void removeField()

        Converts this field portion to the simple portion.

        Specified by:
        removeField in interface IPortion
      • getCoordinates

        public final java.awt.geom.Point2D.Float 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.

        Specified by:
        getCoordinates in interface IPortion
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.