zWeRz
zWeRz

Reputation: 81

Wpf FlowDocumentReader column property

Have one problem with FlowDocumentReader. When the "one page view" selected it looks something like that.

enter image description here

But i want to have only one column, can anyone advise me a solution?

Upvotes: 1

Views: 336

Answers (1)

Clemens
Clemens

Reputation: 128147

You can control the number of columns by setting a "minimum" column width of the current document. Simply set the FlowDocument.ColumnWidth property to some large value to get just one column:

reader.Document.ColumnWidth = 1000;

The documentation says that

A value of Double.NaN causes only one column to be displayed, regardless of the page width. The default is Double.NaN.

but apparently the former is not true.

Upvotes: 1

Related Questions