mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.4 KiB
1.4 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| How to: Insert an Element Into Text Programmatically | 03/30/2017 |
|
|
97bd950a-25ac-4e42-a311-94b6420d4136 |
How to: Insert an Element Into Text Programmatically
The following example shows how to use two xref:System.Windows.Documents.TextPointer objects to specify a range within text to apply a xref:System.Windows.Documents.Span element to.
Example
[!code-csharpFlowMiscSnippets_procedural_snip#InsertInlineIntoTextExampleWholePage] [!code-vbFlowMiscSnippets_procedural_snip#InsertInlineIntoTextExampleWholePage]
The illustration below shows what this example looks like.
