IAdornerPlacement.GetPositionTerms 方法

更新:2007 年 11 月

返回用于定位装饰器的定位项的枚举。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Function GetPositionTerms ( _
    space As AdornerCoordinateSpace, _
    adorner As UIElement, _
    view As DependencyObject, _
    zoom As Vector, _
    computedAdornerSize As Size _
) As IEnumerable(Of AdornerPlacementValue)
用法
Dim instance As IAdornerPlacement
Dim space As AdornerCoordinateSpace
Dim adorner As UIElement
Dim view As DependencyObject
Dim zoom As Vector
Dim computedAdornerSize As Size
Dim returnValue As IEnumerable(Of AdornerPlacementValue)

returnValue = instance.GetPositionTerms(space, _
    adorner, view, zoom, computedAdornerSize)
IEnumerable<AdornerPlacementValue> GetPositionTerms(
    AdornerCoordinateSpace space,
    UIElement adorner,
    DependencyObject view,
    Vector zoom,
    Size computedAdornerSize
)
IEnumerable<AdornerPlacementValue>^ GetPositionTerms(
    AdornerCoordinateSpace^ space, 
    UIElement^ adorner, 
    DependencyObject^ view, 
    Vector zoom, 
    Size computedAdornerSize
)
function GetPositionTerms(
    space : AdornerCoordinateSpace, 
    adorner : UIElement, 
    view : DependencyObject, 
    zoom : Vector, 
    computedAdornerSize : Size
) : IEnumerable<AdornerPlacementValue>

参数

返回值

类型:System.Collections.Generic.IEnumerable<AdornerPlacementValue>

定位项的一个枚举。如果没有使用定位项,则必须返回一个空枚举。

异常

异常 条件
ArgumentNullException

space、adorner 或 view 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

权限

另请参见

参考

IAdornerPlacement 接口

IAdornerPlacement 成员

Microsoft.Windows.Design.Interaction 命名空间

AdornerPlacementCollection

AdornerPanel

其他资源

布局空间和呈现空间

演练:在控件内部实现一个轨道

了解 WPF 设计器扩展性