Export (0) Print
Expand All

Floater.HorizontalAlignment Property

Gets or sets a value that indicates the horizontal alignment for a Floater object. This is a dependency property.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public HorizontalAlignment HorizontalAlignment { get; set; }
/** @property */
public HorizontalAlignment get_HorizontalAlignment ()

/** @property */
public void set_HorizontalAlignment (HorizontalAlignment value)

public function get HorizontalAlignment () : HorizontalAlignment

public function set HorizontalAlignment (value : HorizontalAlignment)

<object HorizontalAlignment="HorizontalAlignment" .../>

Property Value

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

Identifier field


Metadata properties set to true


The following example shows how to set this property.


Floater flotx = new Floater();
flotx.Name = "myFloater";
flotx.Width = 100;
flotx.HorizontalAlignment = HorizontalAlignment.Left;

Paragraph parx = new Paragraph(flotx);
FlowDocument flowDoc = new FlowDocument(parx);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2014 Microsoft