Scheduler for WPF | ComponentOne
C1.WPF.Schedule Namespace / CoverElementsPane Class / GetLaneSize Method
The CoverElementsPane.SizingType value.
The cover element data context. It can be used to determine additional sizing conditions in overrides.
The System.Double value specifying avaliable size.
The System.Int32 value specifying the number of intersecting elements (1 for the single element without intersection).

In This Topic
    GetLaneSize Method (CoverElementsPane)
    In This Topic
    Returns the size which should be used to draw cover element according to specified sizing type, available space and total lane count.
    Syntax
    'Declaration
     
    
    Protected Overridable Function GetLaneSize( _
       ByVal sizingType As SizingType, _
       ByVal dataContext As Object, _
       ByVal availableSpace As Double, _
       ByVal totalLanes As Integer _
    ) As Double

    Parameters

    sizingType
    The CoverElementsPane.SizingType value.
    dataContext
    The cover element data context. It can be used to determine additional sizing conditions in overrides.
    availableSpace
    The System.Double value specifying avaliable size.
    totalLanes
    The System.Int32 value specifying the number of intersecting elements (1 for the single element without intersection).

    Return Value

    The System.Double value specifying actual cover element size (height or width depending on the orientation.
    See Also