Count

IMathBlockCollection.Count property

Gets the number of elements actually contained in the collection. Read-only Int32.

public int Count { get; }

Examples

Example:

[C#]
IMathBlockCollection blockCollection = new MathParagraph();
blockCollection.Add(new MathBlock(new MathematicalText("block1")));
blockCollection.Add(new MathBlock(new MathematicalText("block2")));
int blocksCount = blockCollection.Count;

See Also