コード例 #1
0
        /// <summary>
        /// Writes a <see cref="TextLayoutCommandType.PushLink"/> command to the current position in the stream.
        /// </summary>
        /// <param name="command">The command to write to the stream.</param>
        public void WritePushLink(TextLayoutLinkCommand command)
        {
            hasMultipleFontStyles = true;

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

            stream.Reserve(sizeof(TextLayoutLinkCommand));
            *(TextLayoutLinkCommand*)stream.Data = command;
            *(TextLayoutCommandType*)stream.Data = TextLayoutCommandType.PushLink;
            stream.FinalizeObject(sizeof(TextLayoutLinkCommand));
        }