public final class MathDelimiter extends MathElementBase implements IMathDelimiter
Specifies the delimiter object, consisting of opening and closing characters (such as parentheses, braces, brackets, and vertical bars), and one or more mathematical elements inside, separated by a specified character. Examples: (𝑥2); [𝑥2|𝑦2]
Example:IMathElement element = new MathematicalText("x"); MathDelimiter delimiter = new MathDelimiter(element);
Constructor and Description |
---|
MathDelimiter(IMathElement element)
Initializes MathDelimiter with the specified element as single base argument
|
Modifier and Type | Method and Description |
---|---|
IMathDelimiter |
delimit(char separatorCharacter)
Delimits arguments using the specified delimiter character
|
IMathDelimiter |
enclose(char beginningCharacter,
char endingCharacter)
Encloses a math element in specified characters such as parenthesis or another characters as framing
|
IMathElementCollection |
getArguments()
One or more mathematical elements separated by delimiter characters
|
char |
getBeginningCharacter()
Delimiter Beginning Character specifies the beginning, or opening, delimiter character.
|
IMathElement[] |
getChildren()
Get children elements
|
com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps |
getControlCharacterProperties()
Control Character Properties
|
int |
getDelimiterShape()
Specifies the shape of delimiters in the delimiter object.
|
char |
getEndingCharacter()
Delimiter Ending Character specifies the ending, or closing, delimiter character.
|
boolean |
getGrowToMatchOperandHeight()
Specifies the growth of BeginningCharacter, SeparatorCharacter, EndingCharacter
When true, the delimiters grows vertically to match its operand height.
|
char |
getSeparatorCharacter()
Delimiter Separator Character specifies the character that separates arguments in the delimiter object.
|
void |
setBeginningCharacter(char value)
Delimiter Beginning Character specifies the beginning, or opening, delimiter character.
|
void |
setDelimiterShape(int value)
Specifies the shape of delimiters in the delimiter object.
|
void |
setEndingCharacter(char value)
Delimiter Ending Character specifies the ending, or closing, delimiter character.
|
void |
setGrowToMatchOperandHeight(boolean value)
Specifies the growth of BeginningCharacter, SeparatorCharacter, EndingCharacter
When true, the delimiters grows vertically to match its operand height.
|
void |
setSeparatorCharacter(char value)
Delimiter Separator Character specifies the character that separates arguments in the delimiter object.
|
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, 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, 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 MathDelimiter(IMathElement element)
Initializes MathDelimiter with the specified element as single base argument
Example:IMathElement element = new MathematicalText("x"); MathDelimiter delimiter = new MathDelimiter(element);
element
- The base element to which the delimiter is applied. Can be null.com.aspose.ms.System.InvalidOperationException
- Throws then element is a container for another elements, such as MathBlock. In this case, you need to call a different constructor with IEnumerable argument.public final IMathElementCollection getArguments()
One or more mathematical elements separated by delimiter characters
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); IMathElementCollection arguments = delimiter.getArguments();
getArguments
in interface IMathDelimiter
public final char getBeginningCharacter()
Delimiter Beginning Character specifies the beginning, or opening, delimiter character. Mathematical delimiters are enclosing characters such as parentheses, brackets, and braces. The default: '('.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setBeginningCharacter('[');
getBeginningCharacter
in interface IMathDelimiter
public final void setBeginningCharacter(char value)
Delimiter Beginning Character specifies the beginning, or opening, delimiter character. Mathematical delimiters are enclosing characters such as parentheses, brackets, and braces. The default: '('.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setBeginningCharacter('[');
setBeginningCharacter
in interface IMathDelimiter
public final char getSeparatorCharacter()
Delimiter Separator Character specifies the character that separates arguments in the delimiter object. The default: '|'.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setSeparatorCharacter('$');
getSeparatorCharacter
in interface IMathDelimiter
public final void setSeparatorCharacter(char value)
Delimiter Separator Character specifies the character that separates arguments in the delimiter object. The default: '|'.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setSeparatorCharacter('$');
setSeparatorCharacter
in interface IMathDelimiter
public final char getEndingCharacter()
Delimiter Ending Character specifies the ending, or closing, delimiter character. Mathematical delimiters are enclosing characters such as parentheses, brackets, and braces. The default: ')'.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setEndingCharacter(']');
getEndingCharacter
in interface IMathDelimiter
public final void setEndingCharacter(char value)
Delimiter Ending Character specifies the ending, or closing, delimiter character. Mathematical delimiters are enclosing characters such as parentheses, brackets, and braces. The default: ')'.
Example:IMathDelimiter delimiter = new MathematicalText("x").join("y").enclose(); delimiter.setEndingCharacter(']');
setEndingCharacter
in interface IMathDelimiter
public final boolean getGrowToMatchOperandHeight()
Specifies the growth of BeginningCharacter, SeparatorCharacter, EndingCharacter When true, the delimiters grows vertically to match its operand height. The default value is true
Example:IMathDelimiter delimiter = new MathematicalText("x").divide("y").enclose(); delimiter.setGrowToMatchOperandHeight(false);
getGrowToMatchOperandHeight
in interface IMathDelimiter
public final void setGrowToMatchOperandHeight(boolean value)
Specifies the growth of BeginningCharacter, SeparatorCharacter, EndingCharacter When true, the delimiters grows vertically to match its operand height. The default value is true
Example:IMathDelimiter delimiter = new MathematicalText("x").divide("y").enclose(); delimiter.setGrowToMatchOperandHeight(false);
setGrowToMatchOperandHeight
in interface IMathDelimiter
public final int getDelimiterShape()
Specifies the shape of delimiters in the delimiter object. When is MathDelimiterShape.Centered, delimiters are centered around the math axis of the mathematical text and still be made to fit the entire height of their contents. When is MathDelimiterShape.Match, their height and shape are altered to exactly match their contents.
Example:IMathDelimiter delimiter = new MathematicalText("x").divide("y").enclose(); delimiter.setDelimiterShape(MathDelimiterShape.Match);
getDelimiterShape
in interface IMathDelimiter
public final void setDelimiterShape(int value)
Specifies the shape of delimiters in the delimiter object. When is MathDelimiterShape.Centered, delimiters are centered around the math axis of the mathematical text and still be made to fit the entire height of their contents. When is MathDelimiterShape.Match, their height and shape are altered to exactly match their contents.
Example:IMathDelimiter delimiter = new MathematicalText("x").divide("y").enclose(); delimiter.setDelimiterShape(MathDelimiterShape.Match);
setDelimiterShape
in interface IMathDelimiter
public final IMathDelimiter delimit(char separatorCharacter)
Delimits arguments using the specified delimiter character
delimit
in interface IMathDelimiter
separatorCharacter
- delimiter characterpublic IMathDelimiter enclose(char beginningCharacter, char endingCharacter)
Encloses a math element in specified characters such as parenthesis or another characters as framing
Example:IMathDelimiter innerDelimiter = new MathematicalText("x").join(",y").enclose('{', '}'); IMathDelimiter outerDelimiter = innerDelimiter.enclose('[', ']');
enclose
in interface IMathElement
enclose
in class MathElementBase
beginningCharacter
- Beginning character (usually left bracket)endingCharacter
- Ending character (usually right bracket)MathDelimiter
framed inside.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