Version

Height Property (TextFrameSettings)

Gets/sets the frame's height.
Syntax
'Declaration
 
Public Property Height As Nullable(Of TextFrameHeight)
public Nullable<TextFrameHeight> Height {get; set;}
Remarks

Note: a type converter is supplied to allow this structure to be specified in xaml. Here are some sample values, in quotes, along with corresponding c# code examples:

  • "auto" - new TextFrameHeight(null, ExtentRule.Auto)
  • "12.5" - new TextFrameHeight(new Extent(12.5, ExtentUnitType.Points), ExtentRule.Exact)
  • "20.5px" - new TextFrameHeight(new Extent(20.5, ExtentUnitType.LogicalPixels), ExtentRule.Exact)
  • "atleast 12.5" - new TextFrameHeight(new Extent(12.5, ExtentUnitType.Points), ExtentRule.AtLeast)
  • "atleast 20.5px" - new TextFrameHeight(new Extent(20.5, ExtentUnitType.LogicalPixels), ExtentRule.AtLeast)

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also