Class MathNaryOperator
Represents an n-ary operator element — an operator such as
summation (∑), product (∏), or integral (∫)
with optional subscript, superscript, and base (operand).
Maps to the OMML m:nary element.
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing.Mathematics
Assembly: DRIT.Presentation.dll
Syntax
public sealed class MathNaryOperator : MathElementBase, IMathElement
Constructors
MathNaryOperator()
Initializes a new instance of the math nary operator class.
Declaration
public MathNaryOperator()
MathNaryOperator(char)
Initializes a new instance of the math nary operator class.
Declaration
public MathNaryOperator(char character)
Parameters
| Type | Name | Description |
|---|---|---|
| char | character | The character supplied to this operation. |
MathNaryOperator(char, IMathElement)
Initializes a new instance of the math nary operator class.
Declaration
public MathNaryOperator(char character, IMathElement baseElement)
Parameters
| Type | Name | Description |
|---|---|---|
| char | character | The character supplied to this operation. |
| IMathElement | baseElement | The base element used to construct this element. |
MathNaryOperator(char, IMathElement, IMathElement, IMathElement)
Initializes a new instance of the math nary operator class.
Declaration
public MathNaryOperator(char character, IMathElement baseElement, IMathElement subscript, IMathElement superscript)
Parameters
| Type | Name | Description |
|---|---|---|
| char | character | The character supplied to this operation. |
| IMathElement | baseElement | The base element used to construct this element. |
| IMathElement | subscript | The subscript supplied to this operation. |
| IMathElement | superscript | The superscript supplied to this operation. |
Fields
DefaultCharacter
The default n-ary operator character (n-ary summation, U+2211).
Declaration
public const char DefaultCharacter = '∑'
Field Value
| Type | Description |
|---|---|
| char |
Properties
Base
Gets the base (operand) element. May be null when the
operator has no operand.
Declaration
public IMathElement Base { get; }
Property Value
| Type | Description |
|---|---|
| IMathElement |
Character
Gets or sets the n-ary operator character (e.g. ∑,
∏, ∫).
Declaration
public char Character { get; set; }
Property Value
| Type | Description |
|---|---|
| char |
Grow
Gets or sets whether the operator character grows to match the
height of its operands. Default is true.
Declaration
public bool Grow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LimitLocation
Gets or sets the placement of the sub/superscript limits. Default is UnderOver.
Declaration
public MathLimitLocation LimitLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| MathLimitLocation |
Subscript
Gets the subscript (lower limit) element. May be null.
Declaration
public IMathElement Subscript { get; }
Property Value
| Type | Description |
|---|---|
| IMathElement |
Superscript
Gets the superscript (upper limit) element. May be null.
Declaration
public IMathElement Superscript { get; }
Property Value
| Type | Description |
|---|---|
| IMathElement |
Methods
SetBase(IMathElement)
Sets the base (operand) of the n-ary operator.
Declaration
public MathNaryOperator SetBase(IMathElement baseElement)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | baseElement |
Returns
| Type | Description |
|---|---|
| MathNaryOperator |
SetSubscript(IMathElement)
Sets the subscript (lower limit) of the n-ary operator.
Declaration
public MathNaryOperator SetSubscript(IMathElement subscript)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | subscript |
Returns
| Type | Description |
|---|---|
| MathNaryOperator |
SetSuperscript(IMathElement)
Sets the superscript (upper limit) of the n-ary operator.
Declaration
public MathNaryOperator SetSuperscript(IMathElement superscript)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | superscript |
Returns
| Type | Description |
|---|---|
| MathNaryOperator |