Class MathematicalText
Represents the mathematical text used by the presentation model.
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing.Mathematics
Assembly: DRIT.Presentation.dll
Syntax
public sealed class MathematicalText : MathElementBase, IMathElement
Constructors
MathematicalText()
Initializes a new instance of the mathematical text class.
Declaration
public MathematicalText()
MathematicalText(string)
Initializes a new instance of the mathematical text class.
Declaration
public MathematicalText(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value supplied to this operation. |
Properties
Subscript
Gets or sets the subscript text.
Declaration
public string Subscript { get; }
Property Value
| Type | Description |
|---|---|
| string |
Superscript
Gets or sets the superscript text.
Declaration
public string Superscript { get; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the value text.
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Divide(string)
Handles divide for this mathematical text.
Declaration
public MathFraction Divide(string denominator)
Parameters
| Type | Name | Description |
|---|---|---|
| string | denominator | The denominator supplied to this operation. |
Returns
| Type | Description |
|---|---|
| MathFraction | The divide value produced by the operation. |
Join(IMathElement)
Handles join for this mathematical text.
Declaration
public MathBlock Join(IMathElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | element | The element to add or process. |
Returns
| Type | Description |
|---|---|
| MathBlock | The join value produced by the operation. |
Join(string)
Handles join for this mathematical text.
Declaration
public MathBlock Join(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value supplied to this operation. |
Returns
| Type | Description |
|---|---|
| MathBlock | The join value produced by the operation. |
SetSubscript(string)
Sets the subscript for this mathematical text.
Declaration
public MathematicalText SetSubscript(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value supplied to this operation. |
Returns
| Type | Description |
|---|---|
| MathematicalText | The set subscript value produced by the operation. |
SetSuperscript(string)
Sets the superscript for this mathematical text.
Declaration
public MathematicalText SetSuperscript(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value supplied to this operation. |
Returns
| Type | Description |
|---|---|
| MathematicalText | The set superscript value produced by the operation. |
Underbar()
Handles underbar for this mathematical text.
Declaration
public MathBlock Underbar()
Returns
| Type | Description |
|---|---|
| MathBlock | The underbar value produced by the operation. |