mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
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:
+17
-11
@@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||

|
||||
|
||||
## 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user