Export (0) Print
Expand All

Floater.HorizontalAlignment Property

Gets or sets a value that indicates the horizontal alignment for a Floater object.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

member HorizontalAlignment : HorizontalAlignment with get, set
<object HorizontalAlignment="HorizontalAlignment" .../>

Property Value

Type: System.Windows.HorizontalAlignment
A member of the HorizontalAlignment enumeration specifying the horizontal alignment for the Floater. The default is Stretch.

The following example shows how to set this property.

<FlowDocument>
  <Paragraph>
    <Floater
      Name="myFloater"              
      Width="140" 
      HorizontalAlignment="Left"
    />
  </Paragraph>
</FlowDocument>
No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft