FrameworkElementExtensionsSetLocation Method
Sets the coordinates of the source FrameworkElement element relative to its container.
Namespace: DevCase.Extensions.FrameworkElementExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void SetLocation(
this FrameworkElement element,
Point position
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub SetLocation (
element As FrameworkElement,
position As Point
)
Dim element As FrameworkElement
Dim position As Point
element.SetLocation(position)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void SetLocation(
FrameworkElement^ element,
Point position
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member SetLocation :
element : FrameworkElement *
position : Point -> unit
No code example is currently available or this language may not be supported.
- element FrameworkElement
-
The source FrameworkElement.
- position Point
-
The coordinates of the FrameworkElement element relative to its container.
In Visual Basic and C#, you can call this method as an instance method on any object of type
FrameworkElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).