/// <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)); }
/// <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)); }