HorizontalAlignment Property
Collapse the table of content
Expand the table of content

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)

Public Property HorizontalAlignment As 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>
Dim flotx As New Floater()
flotx.Name = "myFloater"
flotx.Width = 100
flotx.HorizontalAlignment = HorizontalAlignment.Left

Dim parx As New Paragraph(flotx)
Dim flowDoc As New FlowDocument(parx)

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft