Utility.CalculateGridLength Method

Creates a XAML GridLength object giving a string value an type defining the value. See .NET documentation for GridLength for more information

Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Usage

'Usage
Dim num As String
Dim type As String
Dim returnValue As GridLength

returnValue = Utility.CalculateGridLength(num, type)

Syntax

'Declaration
Public Shared Function CalculateGridLength ( _
    num As String, _
    type As String _
) As GridLength
public static GridLength CalculateGridLength (
    string num,
    string type
)
public:
static GridLength CalculateGridLength (
    String^ num, 
    String^ type
)
public static GridLength CalculateGridLength (
    String num, 
    String type
)
public static function CalculateGridLength (
    num : String, 
    type : String
) : GridLength

Parameters

  • num
    Specifies the number. The meaning of this number depends on the type.
  • type
    Specifies the type: Auto, Pixel, or Star.

Return Value

GridLength value

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.