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>
参数
space
类型:Microsoft.Windows.Design.Interaction.AdornerCoordinateSpace所属装饰器面板的坐标空间。
adorner
类型:System.Windows.UIElement要为其获取位置项的装饰器。
view
类型:System.Windows.DependencyObject正由装饰器装饰的视图。
zoom
类型:System.Windows.Vector一个指示设计器缩放的向量。
computedAdornerSize
类型:System.Windows.Size视图在进行排列后的最终大小。
返回值
类型:System.Collections.Generic.IEnumerable<AdornerPlacementValue>
定位项的一个枚举。如果没有使用定位项,则必须返回一个空枚举。
异常
异常 | 条件 |
---|---|
ArgumentNullException | space、adorner 或 view 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Windows.Design.Interaction 命名空间