IAdornerPlacement.GetPositionTerms Method
Returns an enumeration of positioning terms that is used to position an adorner.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Function GetPositionTerms ( _
space As AdornerCoordinateSpace, _
adorner As UIElement, _
view As ViewItem, _
zoom As Vector, _
computedAdornerSize As Size _
) As IEnumerable(Of AdornerPlacementValue)
IEnumerable<AdornerPlacementValue> GetPositionTerms(
AdornerCoordinateSpace space,
UIElement adorner,
ViewItem view,
Vector zoom,
Size computedAdornerSize
)
IEnumerable<AdornerPlacementValue>^ GetPositionTerms(
AdornerCoordinateSpace^ space,
UIElement^ adorner,
ViewItem^ view,
Vector zoom,
Size computedAdornerSize
)
abstract GetPositionTerms :
space:AdornerCoordinateSpace *
adorner:UIElement *
view:ViewItem *
zoom:Vector *
computedAdornerSize:Size -> IEnumerable<AdornerPlacementValue>
function GetPositionTerms(
space : AdornerCoordinateSpace,
adorner : UIElement,
view : ViewItem,
zoom : Vector,
computedAdornerSize : Size
) : IEnumerable<AdornerPlacementValue>
Parameters
- space
Type: Microsoft.Windows.Design.Interaction.AdornerCoordinateSpace
The coordinate space of the owning adorner panel.
- adorner
Type: System.Windows.UIElement
The adorner to get position terms for.
- view
Type: Microsoft.Windows.Design.Interaction.ViewItem
The view being adorned by the adorner.
- zoom
Type: System.Windows.Vector
A vector that indicates the zoom for the designer.
- computedAdornerSize
Type: System.Windows.Size
The resulting size of the adorner after the terms returned by the GetSizeTerms method have been processed.
Return Value
Type: System.Collections.Generic.IEnumerable<AdornerPlacementValue>
An enumeration of positioning terms. If no positioning terms are used, returns an empty enumeration.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner or view is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.