The line Id
The direction, X or Y
The style to apply to the line
GenerateElement Method (GridLinesPanel)
Generates and adds a System.Windows.Shapes.Line element to the GridLinesPanel. Applies the direction and style to the line as well as Id so they may be re-used (pooled)
Syntax
public Line GenerateElement( 
   int lineId,
   XyDirection xyDirection,
   Style lineStyle
)

Parameters

lineId
The line Id
xyDirection
The direction, X or Y
lineStyle
The style to apply to the line

Return Value

The System.Windows.Shapes.Line instance, which has been added to the GridLinesPanel
Requirements

Target Platforms: Windows 7, 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