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