/// <summary>
 /// Writes a <see cref="TextLayoutCommandType.LineBreak"/> command to the current position in the stream.
 /// </summary>
 /// <param name="command">The command to write to the stream.</param>
 public void WriteLineBreak(TextLayoutLineBreakCommand command)
 {
     stream.Reserve(sizeof(TextLayoutLineBreakCommand));
     *(TextLayoutLineBreakCommand *)stream.Data = command;
     *(TextLayoutCommandType *)stream.Data      = TextLayoutCommandType.LineBreak;
     stream.FinalizeObject(sizeof(TextLayoutLineBreakCommand));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes a <see cref="TextLayoutCommandType.LineBreak"/> command to the current position in the stream.
 /// </summary>
 /// <param name="command">The command to write to the stream.</param>
 public void WriteLineBreak(TextLayoutLineBreakCommand command)
 {
     stream.Reserve(sizeof(TextLayoutLineBreakCommand));
     *(TextLayoutLineBreakCommand*)stream.Data = command;
     *(TextLayoutCommandType*)stream.Data = TextLayoutCommandType.LineBreak;
     stream.FinalizeObject(sizeof(TextLayoutLineBreakCommand));
 }