FlowDocument.IsOptimalParagraphEnabled Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de optimale alinea-indeling is ingeschakeld of uitgeschakeld.
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
Waarde van eigenschap
true indien optimale alinea-indeling is ingeschakeld; anders, false. De standaardwaarde is false.
Voorbeelden
In het volgende voorbeeld ziet u hoe u het IsOptimalParagraphEnabled kenmerk van een FlowDocument element instelt.
<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>
In de volgende afbeelding ziet u hoe de voorgaande FlowDocument weergaven worden weergegeven.
In de volgende afbeelding ziet u hoe hetzelfde FlowDocument wordt weergegeven met de standaardinstelling vanIsOptimalParagraphEnabled=false .
In het volgende voorbeeld ziet u hoe u de eigenschap IsOptimalParagraphEnabled programmatisch instelt.
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
Opmerkingen
Optimale alinea-indeling is een functie waarin alinea's zo FlowDocument gelijkmatig mogelijk worden verdeeld. Theoretisch biedt dit een geoptimaliseerde leeservaring door afleidende witruimte te elimineren die kan optreden met tekst met regels en andere indelingsroutines. Optimale alinea-indeling is met name effectief in combinatie met automatische afbreekstreepjes (vertegenwoordigd door de IsHyphenationEnabled eigenschap).
Informatie over afhankelijkheidseigenschappen
| Item | Waarde |
|---|---|
| Id-veld | IsOptimalParagraphEnabledProperty |
Eigenschappen van metagegevens ingesteld op true |
AffectsMeasure |