.NET Framework Class Library for Silverlight
Canvas..::.GetTop Method

Gets the value of the Top attached property for a given object.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public Shared Function GetTop ( _
    element As UIElement _
) As Double
Visual Basic (Usage)
Dim element As UIElement
Dim returnValue As Double

returnValue = Canvas.GetTop(element)
C#
public static double GetTop(
    UIElement element
)

Parameters

element
Type: System.Windows..::.UIElement
The object from which the property value is read.

Return Value

Type: System..::.Double
The Top value of the specified object.
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker