FlowDocument.IsOptimalParagraphEnabled Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
En uygun paragraf düzeninin etkinleştirildiğini veya devre dışı bırakıldığını belirten bir değer alır veya ayarlar.
public:
property bool IsOptimalParagraphEnabled { bool get(); void set(bool value); };
public bool IsOptimalParagraphEnabled { get; set; }
member this.IsOptimalParagraphEnabled : bool with get, set
Public Property IsOptimalParagraphEnabled As Boolean
Özellik Değeri
true
en uygun paragraf düzeni etkinleştirildiyse; aksi takdirde , false
. Varsayılan değer: false
.
Örnekler
Aşağıdaki örnekte bir FlowDocument öğenin özniteliğinin IsOptimalParagraphEnabled nasıl ayarlanacağı gösterilmektedir.
<FlowDocumentReader>
<FlowDocument
TextAlignment="Justify"
IsHyphenationEnabled="True"
IsOptimalParagraphEnabled="True"
Background="LightGray"
PageWidth="400" PageHeight="480"
>
<Paragraph>
<Hyperlink NavigateUri="http://www.xbox.com/en-US/games/p/perfectdarkzero/default.htm">
Perfect Dark Zero
</Hyperlink>
</Paragraph>
<Paragraph>
Joanna Dark returns in the Xbox 360 exclusive <Bold><Italic>Perfect Dark Zero</Italic></Bold>, the
prequel to the internationally award-winning and multi-million selling first-person shooter
<Italic>Perfect Dark</Italic> from famed game developer Rare.
</Paragraph>
<Paragraph>
A secret war has begun between shadowy corporations bent on world domination. Joanna Dark and her father
Jack are caught up in the fight for the future of the planet. A routine bounty hunting mission rips open
a global conspiracy that will change Joanna's destiny—forever.
</Paragraph>
<Paragraph>
Guide Joanna Dark on her journey to become the perfect agent. Featuring a compelling and captivating story,
<Italic>Perfect Dark Zero</Italic> plunges you into a world of corporate espionage and conspiracy. The title
merges the excitement and intrigue of its predecessor with revolutionary game design, cutting-edge online play,
and amazing graphics to deliver an experience that defines next-generation gaming and entertainment...
</Paragraph>
</FlowDocument>
</FlowDocumentReader>
Aşağıdaki şekilde, öncekinin FlowDocument nasıl işlenme şekli gösterilmektedir.
Aşağıdaki şekilde, aynı FlowDocument işlemenin varsayılan ayarıyla nasıl işlenme şekli gösterilmektedir=IsOptimalParagraphEnabledfalse
.
Aşağıdaki örnekte özelliğin IsOptimalParagraphEnabled program aracılığıyla nasıl ayarlanacağı gösterilmektedir.
FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
// Enable automatic hyphenation.
flowDoc.IsHyphenationEnabled = true;
// Enable optimal paragraph layout.
flowDoc.IsOptimalParagraphEnabled = true;
Dim flowDoc As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
' Enable automatic hyphenation.
flowDoc.IsHyphenationEnabled = True
' Enable optimal paragraph layout.
flowDoc.IsOptimalParagraphEnabled = True
Açıklamalar
En uygun paragraf düzeni, paragrafları FlowDocument boşluk bırakabilecek şekilde yerleştiren bir özelliktir. Teorik olarak bu, satır iki yana yaslanmış metin ve diğer düzen yordamları ile oluşabilecek dikkat dağıtıcı boşlukları ortadan kaldırarak iyileştirilmiş bir okuma deneyimi sağlar. En uygun paragraf düzeni özellikle otomatik heceleme (özelliğiyle IsHyphenationEnabled gösterilir) ile birleştirildiğinde etkilidir.
Bağımlılık Özelliği Bilgileri
Tanımlayıcı alanı | IsOptimalParagraphEnabledProperty |
Meta veri özellikleri olarak ayarlandı true |
AffectsMeasure |