public final class MathFraction extends MathElementBase implements IMathFraction
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:MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);
Constructor and Description |
---|
MathFraction(IMathElement numerator,
IMathElement denominator)
Initializes a MathFraction of type 'Bar' with the specified numerator and denominator
|
MathFraction(IMathElement numerator,
IMathElement denominator,
int fractionType)
Initializes MathFraction with the specified numerator, denominator and type
|
Modifier and Type | Method and Description |
---|---|
IMathElement[] |
getChildren()
Get children elements
|
com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps |
getControlCharacterProperties()
Control Character Properties
|
IMathElement |
getDenominator()
Denominator
|
int |
getFractionType()
Fraction type
Default: Bar
|
IMathElement |
getNumerator()
Numerator
|
void |
setFractionType(int value)
Fraction type
Default: Bar
|
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, getParent_Immediate, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbar
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbar
public MathFraction(IMathElement numerator, IMathElement denominator, int fractionType)
Initializes MathFraction with the specified numerator, denominator and type
Example:MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);
numerator
- Numeratordenominator
- DenominatorfractionType
- Fraction typepublic MathFraction(IMathElement numerator, IMathElement denominator)
Initializes a MathFraction of type 'Bar' with the specified numerator and denominator
Example:MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"));
numerator
- Numeratordenominator
- Denominatorpublic final int getFractionType()
Fraction type Default: Bar
Example:IMathFraction mathFraction = new MathematicalText("x").divide("y"); mathFraction.setFractionType(MathFractionTypes.Linear);
getFractionType
in interface IMathFraction
public final void setFractionType(int value)
Fraction type Default: Bar
Example:IMathFraction mathFraction = new MathematicalText("x").divide("y"); mathFraction.setFractionType(MathFractionTypes.Linear);
setFractionType
in interface IMathFraction
public final IMathElement getNumerator()
Numerator
Example:IMathFraction mathFraction = new MathematicalText("x").divide("y"); IMathElement numerator = mathFraction.getNumerator();
getNumerator
in interface IMathFraction
public final IMathElement getDenominator()
Denominator
Example:IMathFraction mathFraction = new MathematicalText("x").divide("y"); IMathElement denominator = mathFraction.getDenominator();
getDenominator
in interface IMathFraction
public final IMathElement[] getChildren()
Get children elements
getChildren
in interface IMathElement
getChildren
in class MathElementBase
IMathElement
public final com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps getControlCharacterProperties()
Control Character Properties