ArcFM Solution Developer Guide
SelectElement(FrameworkElement,Boolean,Func<SnapToGridAttributes>,Action<SnapToGridStateChangedEventArgs>,SolidColorBrush,Canvas,Boolean) Method


The element.
Resize the element is allowed if true.
SnapToGrid callback Func
SnapToGrid callback Action
Color for the dashed line that connects the adorner resize handles
The canvas.
if set to true [multi sel].
Selects the element.
Syntax
'Declaration
 
Public Overloads Shared Sub SelectElement( _
   ByVal element As System.Windows.FrameworkElement, _
   ByVal allowResize As System.Boolean, _
   ByVal getSnapToGridAttributes As System.Func(Of SnapToGridAttributes), _
   ByVal invokeSnapToGridStateChanged As System.Action(Of SnapToGridStateChangedEventArgs), _
   ByVal adornerDashedLineColor As System.Windows.Media.SolidColorBrush, _
   Optional ByVal canvas As System.Windows.Controls.Canvas, _
   Optional ByVal multiSel As System.Boolean _
) 
'Usage
 
Dim element As System.Windows.FrameworkElement
Dim allowResize As System.Boolean
Dim getSnapToGridAttributes As System.Func(Of SnapToGridAttributes)
Dim invokeSnapToGridStateChanged As System.Action(Of SnapToGridStateChangedEventArgs)
Dim adornerDashedLineColor As System.Windows.Media.SolidColorBrush
Dim canvas As System.Windows.Controls.Canvas
Dim multiSel As System.Boolean
 
ElementCanvasExtensions.SelectElement(element, allowResize, getSnapToGridAttributes, invokeSnapToGridStateChanged, adornerDashedLineColor, canvas, multiSel)
public static void SelectElement( 
   System.Windows.FrameworkElement element,
   System.bool allowResize,
   System.Func<SnapToGridAttributes> getSnapToGridAttributes,
   System.Action<SnapToGridStateChangedEventArgs> invokeSnapToGridStateChanged,
   System.Windows.Media.SolidColorBrush adornerDashedLineColor,
   System.Windows.Controls.Canvas canvas,
   System.bool multiSel
)

Parameters

element
The element.
allowResize
Resize the element is allowed if true.
getSnapToGridAttributes
SnapToGrid callback Func
invokeSnapToGridStateChanged
SnapToGrid callback Action
adornerDashedLineColor
Color for the dashed line that connects the adorner resize handles
canvas
The canvas.
multiSel
if set to true [multi sel].
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ElementCanvasExtensions Class
ElementCanvasExtensions Members
Overload List

 

 


Send Comment