mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
* Suggestion/warning fixes. * Minor edits. * Minor edits. * Updated ms.date * Review edits. * Review edits.
2.0 KiB
2.0 KiB
title, description, ms.date, ms.custom, dev_langs, helpviewer_keywords, ms.assetid
| title | description | ms.date | ms.custom | dev_langs | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| How to alter the typography of text | To alter the telegraphy of text, set the telegraphy attribute. You can set the typographic property of text programmatically. You can see how altered and default telegraphy properties of text render on screen each with an example. | 03/30/2017 | devdivchpfy22 |
|
|
19a3b49b-60a2-4c11-a786-e26b4c965588 |
How-to: Alter the Typography of Text
The following example shows how to set the xref:System.Windows.Documents.TextElement.Typography%2A attribute, using xref:System.Windows.Documents.Paragraph as the example element.
Example 1: To show how altered and default typographic properties of text render on screen
[!code-xamlTextElementSnippets#_TextElement_TypogXAML]
The following figure shows how this example renders.
In contrast, the following figure shows how a similar example with default typographic properties renders.
Example 2: To show how to set typographic property of text programmatically
The following example shows how to set the xref:System.Windows.Controls.TextBox.Typography%2A property programmatically.
[!code-csharpTextElementSnippets#_TextElement_Typog] [!code-vbTextElementSnippets#_TextElement_Typog]

