Figure.Height Property

Gets or sets a value that indicates the height of a Figure element.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public FigureLength Height { get; set; }
/** @property */
public FigureLength get_Height ()

/** @property */
public void set_Height (FigureLength value)

public function get Height () : FigureLength

public function set Height (value : FigureLength)

<object Height="FigureLength" .../>

Property Value

A FigureLength structure specifying the height characteristics for the Figure. The default value is FigureLength.Value = 1.0 and FigureLength.FigureUnitType = Auto.

The following example shows how to set the Height attribute of a Figure element.

      Width="140" Height="50" 

The following example shows how to set the Height property programmatically.

Figure figx = new Figure();
figx.Name = "myFigure";
figx.Width = new FigureLength(140);
figx.Height = new FigureLength(50);
figx.HorizontalAnchor = FigureHorizontalAnchor.PageCenter;
figx.VerticalAnchor = FigureVerticalAnchor.PageCenter;
figx.HorizontalOffset = 100;
figx.VerticalOffset = 20;
figx.WrapDirection = WrapDirection.Both;

Paragraph parx = new Paragraph(figx);
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