MathFraction

MathFraction(IMathElement, IMathElement, MathFractionTypes)

Initializes MathFraction with the specified numerator, denominator and type

public MathFraction(IMathElement numerator, IMathElement denominator, 
    MathFractionTypes fractionType)
ParameterTypeDescription
numeratorIMathElementNumerator
denominatorIMathElementDenominator
fractionTypeMathFractionTypesFraction type

Examples

Example:

[C#]
MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);

See Also


MathFraction(IMathElement, IMathElement)

Initializes a MathFraction of type ‘Bar’ with the specified numerator and denominator

public MathFraction(IMathElement numerator, IMathElement denominator)
ParameterTypeDescription
numeratorIMathElementNumerator
denominatorIMathElementDenominator

Examples

Example:

[C#]
MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"));

See Also