|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
FlowDocument.PagePadding, propriété
Espace de noms : System.Windows.Documents
Assembly : PresentationFramework (dans PresentationFramework.dll)
XMLNS pour XAML : http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<object> <object.PagePadding> <Thickness .../> </object.PagePadding> </object>
<object PagePadding="uniformThickness"/> - or - <object PagePadding="independentThickness"/> - or - <object PagePadding="qualifiedUniformThickness"/> - or - <object PagePadding="qualifiedIndependentThickness"/>
Valeurs XAML
Valeur de propriété
Type : System.Windows.Thickness<FlowDocumentReader> <FlowDocument PagePadding="10"> <Paragraph>Padding is 10 pixels all around.</Paragraph> </FlowDocument> </FlowDocumentReader> <FlowDocumentReader> <FlowDocument PagePadding="1.5in"> <Paragraph>Padding is 1 and a half inches all around.</Paragraph> </FlowDocument> </FlowDocumentReader> <FlowDocumentReader> <FlowDocument PagePadding="5,10,5,10"> <Paragraph>Padding is 5 pixels on the right and left, and 10 pixels on the top and botton.</Paragraph> </FlowDocument> </FlowDocumentReader> <FlowDocumentReader> <FlowDocument PagePadding="0.8in,20,0.8in,20"> <Paragraph>Padding is 1 eigth of an inch on the right and left, and 20 pixels on the top and botton.</Paragraph> </FlowDocument> </FlowDocumentReader>
FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content..."))); // Padding is 10 pixels all around. flowDoc.PagePadding = new Thickness(10); // Padding is 5 pixels on the right and left, and 10 pixels on the top and botton. flowDoc.PagePadding = new Thickness(5, 10, 5, 10);
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.