RootPlacementAdapter 类

为不具有父项的任何元素提供位置支持。

继承层次结构

System.Object
  Microsoft.Windows.Design.Features.FeatureProvider
    Microsoft.Windows.Design.Interaction.Adapter
      Microsoft.Windows.Design.Interaction.PlacementAdapter
        Microsoft.Windows.Design.Interaction.RootPlacementAdapter

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

语法

声明
Public MustInherit Class RootPlacementAdapter _
    Inherits PlacementAdapter
public abstract class RootPlacementAdapter : PlacementAdapter
public ref class RootPlacementAdapter abstract : public PlacementAdapter
[<AbstractClass>]
type RootPlacementAdapter =  
    class
        inherit PlacementAdapter
    end
public abstract class RootPlacementAdapter extends PlacementAdapter

RootPlacementAdapter 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 RootPlacementAdapter 初始化 RootPlacementAdapter 类的新实例。

页首

属性

  名称 说明
公共属性 AdapterType 获取适配器类型。 (重写 PlacementAdapter.AdapterType。)

页首

方法

  名称 说明
公共方法 BeginPlacement 开始放置操作。 (继承自 PlacementAdapter。)
公共方法 CanSetPosition 返回一个值,该值指示是否可设置指定的坐标。 (继承自 PlacementAdapter。)
公共方法 EndPlacement 结束放置操作。 (继承自 PlacementAdapter。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetPlacement 返回描述指定项目的位置的位置集合。 (继承自 PlacementAdapter。)
公共方法 GetPlacementBoundary(ModelItem) 获取指定项父级的边界。 (继承自 PlacementAdapter。)
公共方法 GetPlacementBoundary(ModelItem, PlacementIntent, array<RelativeValue[]) 获取指定项的父级的边界。 (继承自 PlacementAdapter。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetNudgePlacements(ModelItem, NudgeIntent, array<RelativeValue[]) 分配在键盘轻触期间用于移动控件的位置的指定数组。 (继承自 PlacementAdapter。)
公共方法 SetNudgePlacements(ModelItem, NudgeIntent, RelativeValueCollection) 分配在键盘轻触期间用于移动控件的位置的指定集合。 (继承自 PlacementAdapter。)
公共方法 SetPlacements(ModelItem, PlacementIntent, array<RelativeValue[]) 将位置的指定数组分配给指定的模型项。 (继承自 PlacementAdapter。)
公共方法 SetPlacements(ModelItem, PlacementIntent, RelativeValueCollection) 将位置的指定集合分配给指定的模型项。 (继承自 PlacementAdapter。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

一个 RootPlacementAdapter 实现,通常可通过此实现来调整元素的大小,但不能移动元素。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Windows.Design.Interaction 命名空间

AdornerPlacementCollection

AdornerPanel

PlacementAdapter

其他资源

了解 WPF 设计器扩展性