문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top