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