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 HorizontalAlignment {
	HorizontalAlignment get();
	void set(HorizontalAlignment value);
}

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
Available since 3.0
Return to top
Show: