Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 3
Canvas Class
Canvas Methods
 GetTop Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.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)
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.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker