Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/how-to-use-flowdocument-column-separating-attributes.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* 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
2020-09-04 09:46:28 -07:00

21 lines
1.5 KiB
Markdown

---
title: "How to: Use FlowDocument Column-Separating Attributes"
ms.date: "03/30/2017"
helpviewer_keywords:
- "FlowDocument column-separating attributes"
- "column-separating attributes"
- "documents [WPF], FlowDocument column-separating attributes"
ms.assetid: c7a822f8-aeca-45bd-a258-2852ff28005c
---
# How to: Use FlowDocument Column-Separating Attributes
This example shows how to use the column-separating features of a <xref:System.Windows.Documents.FlowDocument>.
## Example
The following example defines a <xref:System.Windows.Documents.FlowDocument>, and sets the <xref:System.Windows.Documents.FlowDocument.ColumnGap%2A>, <xref:System.Windows.Documents.FlowDocument.ColumnRuleBrush%2A>, and <xref:System.Windows.Documents.FlowDocument.ColumnRuleWidth%2A> attributes. The <xref:System.Windows.Documents.FlowDocument> contains a single paragraph of sample content.
[!code-xaml[FlowDocumentSnippets#_FlowDocumentColumnStuffXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml#_flowdocumentcolumnstuffxaml)]
The following figure shows the effects of the <xref:System.Windows.Documents.FlowDocument.ColumnGap%2A>, <xref:System.Windows.Documents.FlowDocument.ColumnRuleBrush%2A>, and <xref:System.Windows.Documents.FlowDocument.ColumnRuleWidth%2A> attributes in a rendered <xref:System.Windows.Documents.FlowDocument>.
![Screenshot that shows the FlowDocument Intra Column attribute.](./media/how-to-use-flowdocument-column-separating-attributes/flowdocument-intra-column.png)