Version

Extent Structure

Represents a extent value
Syntax
'Declaration
 
Public Structure Extent 
   Inherits System.ValueType
public struct Extent : System.ValueType 
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 :

  • "5" - new Extent(5, ExtentUnitType.Points)
  • "5.5pt" - new Extent(5.5, ExtentUnitType.Points)
  • "5pc" - new Extent(60, ExtentUnitType.Points)
  • "105twip" - new Extent(105, ExtentUnitType.Twips)
  • ".23in" - new Extent(.23, ExtentUnitType.Inches)
  • ".23cm" - new Extent(.23, ExtentUnitType.Centimeters)
  • ".23mm" - new Extent(.23, ExtentUnitType.Millimeters)
  • "17px" - new Extent(17, ExtentUnitType.LogicalPixels)
  • "200emu" - new Extent(200, ExtentUnitType.Emus)

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