Fix build validation warning and suggestions in topics - unique titles for US1889327 (#1229)

* updating unique titles to topics for us1889327

* updating unique titles to topics for us1889327

* updating unique level 2 headings for us1889327

* Updating unique titles to topics for US1889327

* Updating unique titles to topics for US1889327

* updating unique level 2 headings to topics for us1889327
This commit is contained in:
Kirupakaran Pandurangan
2021-12-01 12:14:43 -08:00
committed by GitHub
parent c6320c2d04
commit d70eb38632
3 changed files with 42 additions and 24 deletions
@@ -1,5 +1,8 @@
---
title: "How-to: Alter the Typography of Text"
title: How to Alter the Typography of Text
description: 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.
ms.date: "03/30/2017"
dev_langs:
- "csharp"
@@ -10,24 +13,27 @@ helpviewer_keywords:
ms.assetid: 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.
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
[!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)]
## Example 1: To show how altered and default typographic properties of text render on screen
[!code-xaml[TextElementSnippets#_TextElement_TypogXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml#_textelement_typogxaml)]
The following figure shows how this example renders.
The following figure shows how this example renders.
![Screenshot: Text with altered typography](./media/textelement-typog.png "TextElement_Typog")
![Screenshot: Text element with altered typography](./media/textelement-typog.png "TextElement_Typog")
In contrast, the following figure shows how a similar example with default typographic properties renders.
In contrast, the following figure shows how a similar example with default typographic properties renders.
![Screenshot: Text with altered typography](./media/textelement-typog-default.png "TextElement_Typog_Default")
![Screenshot: Text element with default typography](./media/textelement-typog-default.png "TextElement_Typog_Default")
## Example
The following example shows how to set the <xref:System.Windows.Controls.TextBox.Typography%2A> property programmatically.
## 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-csharp[TextElementSnippets#_TextElement_Typog](~/samples/snippets/csharp/VS_Snippets_Wpf/TextElementSnippets/CSharp/Window1.xaml.cs#_textelement_typog)]
[!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)]
[!code-vb[TextElementSnippets#_TextElement_Typog](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TextElementSnippets/visualbasic/window1.xaml.vb#_textelement_typog)]
## See also