コード例 #1
0
 /// <summary>
 /// Writes a <see cref="TextLayoutCommandType.Text"/> command to the current position in the stream.
 /// </summary>
 /// <param name="command">The command to write to the stream.</param>
 public void WriteText(TextLayoutTextCommand command)
 {
     stream.Reserve(sizeof(TextLayoutTextCommand));
     *(TextLayoutTextCommand *)stream.Data = command;
     *(TextLayoutCommandType *)stream.Data = TextLayoutCommandType.Text;
     stream.FinalizeObject(sizeof(TextLayoutTextCommand));
 }
コード例 #2
0
 /// <summary>
 /// Writes a <see cref="TextLayoutCommandType.Text"/> command to the current position in the stream.
 /// </summary>
 /// <param name="command">The command to write to the stream.</param>
 public void WriteText(TextLayoutTextCommand command)
 {
     stream.Reserve(sizeof(TextLayoutTextCommand));
     *(TextLayoutTextCommand*)stream.Data = command;
     *(TextLayoutCommandType*)stream.Data = TextLayoutCommandType.Text;
     stream.FinalizeObject(sizeof(TextLayoutTextCommand));
 }