TextContentBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Scoped builder for a text content part within a message. Owns its full
lifecycle: EmitAdded → EmitDelta (0+) → EmitTextDone
→ EmitAnnotationAdded (0+) → EmitDone.
public class TextContentBuilder
type TextContentBuilder = class
Public Class TextContentBuilder
- Inheritance
-
TextContentBuilder
Constructors
| Name | Description |
|---|---|
| TextContentBuilder() |
Initializes a new instance of TextContentBuilder for mocking. |
Properties
| Name | Description |
|---|---|
| Annotations |
The annotations emitted via EmitAnnotationAdded(Annotation). |
| ContentIndex |
The content index assigned to this text content part. |
| FinalText |
The final text set by EmitTextDone(String). Null if not yet finalized. |
Methods
| Name | Description |
|---|---|
| EmitAdded() |
Produces a |
| EmitAnnotationAdded(Annotation) |
Produces a |
| EmitDelta(String) |
Produces a |
| EmitDone() |
Produces a |
| EmitTextDone(String) |
Produces a |