MathParagraph
Contenu
[
Cacher
]Classe MathParagraph
Paragraphe mathématique qui est un conteneur pour des blocs mathématiques (IMathBlock)
public class MathParagraph : IMathParagraph
Constructeurs
| Nom | Description |
|---|---|
| MathParagraph() | Initialise une nouvelle instance de la classe MathParagraph. |
| MathParagraph(IMathBlock) | Initialise une nouvelle instance de la classe MathParagraph. |
Propriétés
| Nom | Description |
|---|---|
| Count { get; } | Obtient le nombre d’éléments effectivement contenus dans la collection. Lecture seule Int32. |
| Item { get; set; } | Obtient l’élément à l’index spécifié. Lecture seule IMathBlock. |
| Justification { get; set; } | Justification du paragraphe Valeur par défaut : CenteredAsGroup |
Méthodes
| Nom | Description |
|---|---|
| Add(IMathBlock) | Ajoute IMathBlock à la fin de la collection. |
| Clear() | Supprime tous les éléments de la collection. |
| Contains(IMathBlock) | Détermine si la collection contient une valeur spécifique. |
| IndexOf(IMathBlock) | Détermine l’index d’un IMathBlock spécifique dans la collection. |
| Insert(int, IMathBlock) | Insère IMathBlock dans la collection à l’index spécifié. |
| Remove(IMathBlock) | Supprime la première occurrence d’un objet spécifique dans la collection/>. |
| RemoveAt(int) | Supprime un élément à l’index spécifié de la collection. |
| ToLatex() | Obtient l’équation mathématique au format LaTeX |
| WriteAsMathMl(Stream) | Enregistre le contenu de ce MathParagraph comme MathML |
Exemples
Exemple:
[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Justification = MathJustification.LeftJustified;
Voir Aussi
- interface IMathParagraph
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides