com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IMathFraction

  • All Superinterfaces:
    IMathElement
    All Known Implementing Classes:
    MathFraction


    public interface IMathFraction
    extends IMathElement

    Specifies the fraction object, consisting of a numerator and denominator separated by a fraction bar. The fraction bar can be horizontal or diagonal, depending on the fraction properties. The fraction object is also used to represent the stack function, which places one element above another, with no fraction bar.


    Example:
     
     IMathFraction mathFraction = new MathematicalText("x").divide("y");
     IMathFraction mathFraction2 = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);
     
    • Method Detail

      • getFractionType

        int getFractionType()

        Fraction type Default: Bar


        Example:
         
         IMathFraction mathFraction = new MathematicalText("x").divide("y");
         mathFraction.setFractionType(MathFractionTypes.Linear);
         
      • setFractionType

        void setFractionType(int value)

        Fraction type Default: Bar


        Example:
         
         IMathFraction mathFraction = new MathematicalText("x").divide("y");
         mathFraction.setFractionType(MathFractionTypes.Linear);
         
      • getNumerator

        IMathElement getNumerator()

        Numerator


        Example:
         
         IMathFraction mathFraction = new MathematicalText("x").divide("y");
         IMathElement numerator = mathFraction.getNumerator();
         
      • getDenominator

        IMathElement getDenominator()

        Denominator


        Example:
         
         IMathFraction mathFraction = new MathematicalText("x").divide("y");
         IMathElement denominator = mathFraction.getDenominator();