ActivityDesigner 类

定义

警告

此 API 现已过时。

为所有活动设计器组件提供强制的基类。Provides a mandatory base class for all activity designer components.

public ref class ActivityDesigner : IDisposable, System::ComponentModel::Design::IDesignerFilter, System::ComponentModel::Design::IRootDesigner, System::Drawing::Design::IToolboxUser, System::Workflow::ComponentModel::Design::IPersistUIState, System::Workflow::ComponentModel::Design::IWorkflowRootDesigner
[System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))]
public class ActivityDesigner : IDisposable, System.ComponentModel.Design.IDesignerFilter, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser, System.Workflow.ComponentModel.Design.IPersistUIState, System.Workflow.ComponentModel.Design.IWorkflowRootDesigner
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
[System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))]
public class ActivityDesigner : IDisposable, System.ComponentModel.Design.IDesignerFilter, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser, System.Workflow.ComponentModel.Design.IPersistUIState, System.Workflow.ComponentModel.Design.IWorkflowRootDesigner
type ActivityDesigner = class
    interface IDisposable
    interface IDesignerFilter
    interface IDesigner
    interface IToolboxUser
    interface IPersistUIState
    interface IWorkflowRootDesigner
    interface IRootDesigner
Public Class ActivityDesigner
Implements IDesignerFilter, IDisposable, IPersistUIState, IRootDesigner, IToolboxUser, IWorkflowRootDesigner
继承
ActivityDesigner
派生
属性
实现

示例

下面的示例演示了自定义活动的 ActivityDesigner 的完整实现。The following example shows a complete implementation of an ActivityDesigner for a custom activity. 该设计器有一个可切换的标志,该标志允许基类 ActivityDesigner 控制绘制操作或使用 ActivityDesignerPaint 类的各种方法来绘制活动。The designer has a flag that can be toggled to allow the base class ActivityDesigner to control the painting or to utilize the various methods the ActivityDesignerPaint class to draw the activity.

[ActivityDesignerTheme(typeof(CustomCompositeActivityDesignerTheme))]
public class CustomActivityDesigner : ActivityDesigner
{
    public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner)
    {
        if (parentActivityDesigner.GetType().ToString() == "System.Workflow.Activities.IfElseBranchDesigner")
            return false;

        return true;
    }

    private ActivityDesignerVerbCollection verbs = null;

    protected override ActivityDesignerVerbCollection Verbs
    {
        get
        {
            if (this.verbs == null)
                CreateActivityVerbs();

            return this.verbs;
        }
    }

    private void CreateActivityVerbs()
    {
        this.verbs = new ActivityDesignerVerbCollection();

        ActivityDesignerVerb addBranchVerb = new ActivityDesignerVerb(this,
            DesignerVerbGroup.View, "Add New Parallel Branch", new EventHandler(OnAddParallelBranch));
        this.verbs.Clear();

        this.verbs.Add(addBranchVerb);
    }

    protected void OnAddParallelBranch(object sender, EventArgs e)
    {
        // Code for adding a new branch to the parallel activity goes here
    }

    protected override Rectangle ImageRectangle
    {
        get
        {
            Rectangle bounds = this.Bounds;
            Size sz = new Size(24, 24);

            Rectangle imageRect = new Rectangle();
            imageRect.X = bounds.Left + ((bounds.Width - sz.Width) / 2);
            imageRect.Y = bounds.Top + 4;
            imageRect.Size = sz;

            return imageRect;
        }
    }

    protected override Rectangle TextRectangle
    {
        get
        {
            return new Rectangle(
                this.Bounds.Left + 2,
                this.ImageRectangle.Bottom,
                this.Bounds.Width - 4,
                this.Bounds.Height - this.ImageRectangle.Height - 1);
        }
    }

    protected override void Initialize(Activity activity)
    {
        base.Initialize(activity);
        Bitmap bmp = Resources.ToolboxImage;
        bmp.MakeTransparent();
        this.Image = bmp;
    }

    readonly static Size BaseSize = new Size(64, 64);
    protected override Size OnLayoutSize(ActivityDesignerLayoutEventArgs e)
    {
        return BaseSize;
    }

    private bool expanded = true;
    private bool useBasePaint = false;

    public bool UseBasePaint
    {
        get { return this.useBasePaint; }
        set { this.useBasePaint = value; }
    }

    public bool Expanded
    {
        get { return this.expanded; }
        set { this.expanded = value; }
    }

    protected override void OnPaint(ActivityDesignerPaintEventArgs e)
    {
        if (this.UseBasePaint == true)
        {
            base.OnPaint(e);
            return;
        }

        DrawCustomActivity(e);
    }

    private void DrawCustomActivity(ActivityDesignerPaintEventArgs e)
    {
        Graphics graphics = e.Graphics;

        CompositeDesignerTheme compositeDesignerTheme = (CompositeDesignerTheme)e.DesignerTheme;

        ActivityDesignerPaint.DrawRoundedRectangle(graphics, compositeDesignerTheme.BorderPen, this.Bounds, compositeDesignerTheme.BorderWidth);

        string text = this.Text;
        Rectangle textRectangle = this.TextRectangle;
        if (!String.IsNullOrEmpty(text) && !textRectangle.IsEmpty)
        {
            ActivityDesignerPaint.DrawText(graphics, compositeDesignerTheme.Font, text, textRectangle, StringAlignment.Center, e.AmbientTheme.TextQuality, compositeDesignerTheme.ForegroundBrush);
        }

        System.Drawing.Image image = this.Image;
        Rectangle imageRectangle = this.ImageRectangle;
        if (image != null && !imageRectangle.IsEmpty)
        {
            ActivityDesignerPaint.DrawImage(graphics, image, imageRectangle, DesignerContentAlignment.Fill);
        }

        ActivityDesignerPaint.DrawExpandButton(graphics,
            new Rectangle(this.Location.X, this.Location.Y, 10, 10),
            this.Expanded,
            compositeDesignerTheme);
    }
}
<ActivityDesignerTheme(GetType(CustomCompositeActivityDesignerTheme))> _
Public Class CustomActivityDesigner
    Inherits ActivityDesigner

   
    Public Overrides Function CanBeParentedTo(ByVal parentActivityDesigner As CompositeActivityDesigner) As Boolean
        If parentActivityDesigner.GetType().ToString() = "System.Workflow.Activities.IfElseBranchDesigner" Then
            Return False
        End If
        Return True
    End Function

    Private verbsValue As ActivityDesignerVerbCollection = Nothing

    Protected Overrides ReadOnly Property Verbs() As ActivityDesignerVerbCollection
        Get
            If verbsValue Is Nothing Then
                CreateActivityVerbs()
            End If
            Return Me.verbsValue

        End Get
    End Property

    Private Sub CreateActivityVerbs()
        Me.verbsValue = New ActivityDesignerVerbCollection()

        Dim addBranchVerb As New ActivityDesignerVerb(Me, DesignerVerbGroup.View, "Add New Parallel Branch", AddressOf OnAddParallelBranch)

        Me.verbsValue.Clear()

        Me.verbsValue.Add(addBranchVerb)
    End Sub

    Protected Sub OnAddParallelBranch(ByVal sender As Object, ByVal e As EventArgs)
        ' Code for adding a new branch to the parallel activity goes here
    End Sub

    Protected Overrides ReadOnly Property ImageRectangle() As Rectangle

        Get
            Dim Bounds As Rectangle = Me.Bounds
            Dim sz As New Size(24, 24)

            Dim imageRect As New Rectangle()
            imageRect.X = Bounds.Left + ((Bounds.Width - sz.Width) / 2)
            imageRect.Y = Bounds.Top + 4
            imageRect.Size = sz

            Return imageRect
        End Get
    End Property

    Protected Overrides ReadOnly Property TextRectangle() As Rectangle
        Get
            Return New Rectangle( _
                Me.Bounds.Left + 2, _
                 Me.ImageRectangle.Bottom, _
                Me.Bounds.Width - 4, _
                Me.Bounds.Height - Me.ImageRectangle.Height - 1)
        End Get
    End Property


    Protected Overrides Sub Initialize(ByVal activity As Activity)

        MyBase.Initialize(activity)
        Dim bmp As Bitmap = Resources.ToolboxImage
        bmp.MakeTransparent()
        Me.Image = bmp
    End Sub

    Shared ReadOnly BaseSize As New Size(64, 64)
    Protected Overrides Function OnLayoutSize(ByVal e As ActivityDesignerLayoutEventArgs) As Size
        Return BaseSize
    End Function

    Private expandedValue As Boolean = True
    Private useBasePaintValue As Boolean = False

    Public Property UseBasePaint() As Boolean
        Get
            Return Me.useBasePaintValue
        End Get

        Set(ByVal value As Boolean)
            Me.useBasePaintValue = value
        End Set
    End Property

    Public Property Expanded() As Boolean
        Get
            Return Me.expandedValue
        End Get
        Set(ByVal value As Boolean)
            Me.expandedValue = value
        End Set
    End Property


    Protected Overrides Sub OnPaint(ByVal e As ActivityDesignerPaintEventArgs)
        If Me.UseBasePaint = True Then
            MyBase.OnPaint(e)
            Return
        End If

        DrawCustomActivity(e)
    End Sub

    Private Sub DrawCustomActivity(ByVal e As ActivityDesignerPaintEventArgs)
        Dim graphics As Graphics = e.Graphics

        Dim compositeDesignerTheme As CompositeDesignerTheme = CType(e.DesignerTheme, CompositeDesignerTheme)

        ActivityDesignerPaint.DrawRoundedRectangle(graphics, compositeDesignerTheme.BorderPen, Me.Bounds, compositeDesignerTheme.BorderWidth)

        Dim text As String = Me.Text
        Dim TextRectangle As Rectangle = Me.TextRectangle
        If Not String.IsNullOrEmpty(text) And Not TextRectangle.IsEmpty Then
            ActivityDesignerPaint.DrawText(graphics, compositeDesignerTheme.Font, text, TextRectangle, StringAlignment.Center, e.AmbientTheme.TextQuality, compositeDesignerTheme.ForegroundBrush)
        End If

        Dim Image As System.Drawing.Image = Me.Image
        Dim ImageRectangle As Rectangle = Me.ImageRectangle
        If Image IsNot Nothing And Not ImageRectangle.IsEmpty Then
            ActivityDesignerPaint.DrawImage(graphics, Image, ImageRectangle, DesignerContentAlignment.Fill)
        End If

        ActivityDesignerPaint.DrawExpandButton(graphics, _
            New Rectangle(Me.Location.X, Me.Location.Y, 10, 10), _
            Me.Expanded, _
            compositeDesignerTheme)
    End Sub
End Class

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

所有活动设计器组件都是从 ActivityDesigner 派生的。All activity designer components derive from ActivityDesigner. ActivityDesigner 提供了一个简单设计器,使用户可以在设计模式下直观地设计活动。The ActivityDesigner provides a simple designer which lets the user visually design activities in the design mode.

ActivityDesigner 为活动提供了一个简单机制,使它们可以参与在设计图面上呈现工作流的操作。ActivityDesigner provides a simple mechanism for the activities so they can participate in rendering the workflow on the design surface.

ActivityDesigner 使用户可以自定义与活动关联的布局和绘制。ActivityDesigner lets the user customize layout and drawing associated with the activity.

ActivityDesigner 使用户可以扩展与活动关联的元数据。ActivityDesigner lets the user extend the metadata associated with the activity.

构造函数

ActivityDesigner()

初始化 ActivityDesigner 类的新实例。Initializes a new instance of the ActivityDesigner class.

属性

AccessibilityObject

获取一个 AccessibleObject,辅助功能应用程序使用该对象为残障用户调整应用程序 UI。Gets an AccessibleObject that accessibility applications use to adjust the application UI for users who have impairments.

Activity

获取与设计器关联的 ActivityGets the Activity associated with the designer.

Bounds

获取一个 Rectangle,其中包含环绕设计器的矩形的值(以逻辑坐标表示)。Gets a Rectangle which contains the value for the enclosing rectangle of the designer in logical coordinates.

DesignerActions

获取与配置错误关联的操作的数组。Gets the array of actions associated with configuration errors.

DesignerTheme

获取活动设计器的当前设计器主题。Gets the current designer theme for the activity designer.

EnableVisualResizing

获取一个值,该值指示能否在任意形式的设计器中调整活动设计器的大小。Gets a value that indicates whether the activity designer can be resized in a free form designer.

Glyphs

获取用于修饰设计器的标志符号的集合。Gets a collection of glyphs with which to adorn the designer.

Image

获取或设置与设计器关联的 ImageGets or sets the Image associated with the designer.

ImageRectangle

获取与设计器关联的图像的环绕边界值(以逻辑坐标表示)。Gets the value for the enclosing bounds of the image associated with the designer in logical coordinates.

InvokingDesigner

获取或设置调用与当前活动设计器关联的活动的活动设计器。Gets or sets the designer of the activity that invokes the activity associated with the current activity designer.

IsLocked

获取一个值,该值指示能否修改与设计器关联的活动。Gets a value that indicates whether the activity associated with the designer can be modified.

IsPrimarySelection

获取一个值,该值指示与设计器关联的活动是否为主选择。Gets a value that indicates whether the activity associated with the designer is the primary selection.

IsRootDesigner

获取一个值,该值指示设计器是否为根设计器。Gets a value that indicates whether the designer is a root designer.

IsSelected

获取一个值,该值指示是否选择了与设计器关联的活动。Gets a value that indicates whether the activity associated with the designer is selected.

IsVisible

获取一个值,该值指示与设计器关联的活动在工作流上是否可见。Gets a value that indicates whether the activity associated with the designer is visible on the workflow.

Location

获取或设置设计器的位置(以逻辑坐标表示)。Gets or sets the location of the designer in logical coordinates.

MessageFilters

获取与活动设计器关联的消息筛选器的只读集合。Gets a read-only collection of message filters that are associated with the activity designer.

MinimumSize

获取活动设计器的最小大小。Gets the minimum size for the activity designer.

ParentDesigner

获取现有设计器的父设计器。Gets the parent designer of the existing designer.

ParentView

获取包含当前活动设计器的工作流视图。Gets the workflow view that contains the current activity designer.

ShowSmartTag

获取一个值,该值指示活动是否应显示智能标记。Gets a value that indicates whether the activity should show a smart tag.

Size

获取或设置 ActivityDesigner 的大小。Gets or sets the size of the ActivityDesigner.

SmartTagRectangle

获取应在其中显示智能标记的矩形。Gets the rectangle where the smart tag should be displayed.

SmartTagVerbs

获取要与活动设计器上的智能标记关联的设计器操作的只读集合。Gets a read-only collection of designer actions to associate with a smart tag on the activity designer.

Text

获取或设置与设计器关联的文本。Gets or sets the text to associate with the designer.

TextRectangle

获取文本矩形的值(以逻辑坐标表示)。Gets the value of the text rectangle in logical coordinates.

Verbs

获取与设计器关联的谓词的集合。Gets the collection of verbs to be associated with the designer.

方法

CanBeParentedTo(CompositeActivityDesigner)

返回一个值,该值指示 CompositeActivity 能否设置与设计器关联的活动的父级。Returns a value that indicates if a CompositeActivity can be set as the parent of the activity associated with the designer.

CanConnect(ConnectionPoint, ConnectionPoint)

返回一个值,该值指示能否在当前活动设计器上的指定连接点与目标活动设计器上的指定连接点之间创建连接。Returns a value that indicates whether a connection can be created between the specified connection point on the current activity designer and the specified connection point on a target activity designer.

CreateView(ViewTechnology)

使用指定的视图技术为当前活动设计器创建工作流视图。Creates a workflow view for the current activity designer using the specified ViewTechnology.

Dispose()

释放 ActivityDesigner 使用的非托管资源并选择性地释放托管资源。Releases the unmanaged resources used by the ActivityDesigner and optionally releases the managed resources.

Dispose(Boolean)

释放 ActivityDesigner 类使用的资源。Releases the resources used by the ActivityDesigner class.

DoDefaultAction()

执行与设计器关联的默认 UI 操作。Performs the default UI action associated with the designer.

EnsureVisible()

移动屏幕的可视区域以确保指定设计器是可见的。Shifts the visible area of the screen to guarantee that the specified designer is visible.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Finalize()

当在派生类中重写时,允许对象自行清理任何资源。When overridden in a derived class, allows an object to clean up any resources deterministically.

GetConnectionPoints(DesignerEdges)

返回沿指定 DesignerEdges 的活动设计器连接点的只读集合。Returns a read-only collection of connection points for the activity designer along the specified DesignerEdges.

GetConnections(DesignerEdges)

返回设计器用于连接的点的只读集合。Returns a read-only collection of points that the designer uses for connections.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPreviewImage(Graphics)

获取指定 Graphics 上的活动设计器的图像。Gets the image of the activity designer on the specified Graphics.

GetRootDesigner(IServiceProvider)

返回与工作流的设计图面关联的设计器。Returns the designer associated with the design surface of the workflow.

GetService(Type)

尝试从与设计器关联的活动的设计模式站点检索指定类型的服务。Tries to retrieve the specified type of service from the design mode site for the activity associated with the designer.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HitTest(Point)

获取有关位于屏幕上指定点的 ActivityDesigner 的信息。Gets information about the ActivityDesigner at a specified point on the screen.

Initialize(Activity)

使用关联的 Activity 初始化设计器。Initializes the designer with the associated Activity.

Invalidate()

使设计器无效。Invalidates the designer.

Invalidate(Rectangle)

使设计器上的指定矩形无效。Invalidates the specified rectangle on the designer.

IsCommentedActivity(Activity)

返回一个值,该值指示当前设计器的活动是否已注释或位于已注释的活动内。Returns a value that indicates whether the current designer's activity is commented or is inside a commented activity.

IsSupportedActivityType(Type)

返回一个值,该值指示在活动设计器为根设计器的情况下是否支持指定的活动类型。Returns a value that indicates whether the specified activity type is supported if the activity designer is a root designer.

LoadViewState(BinaryReader)

从二进制流中加载设计器的视图状态。Loads the view state of the designer from a binary stream.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnActivityChanged(ActivityChangedEventArgs)

当关联的活动发生更改时向 ActivityDesigner 发出通知。Notifies the ActivityDesigner when the activity it is associated with changes.

OnBeginResizing(ActivityDesignerResizeEventArgs)

在设计器位于 ActivityDesigner 中的情况下用户开始直观地调整活动设计器的大小时,向 FreeformActivityDesigner 发出通知。Notifies the ActivityDesigner when a user starts to visually resize the activity designer when the designer is in a FreeformActivityDesigner.

OnConnected(ConnectionPoint, ConnectionPoint)

当在两个连接点之间建立连接时,向 ActivityDesigner 发出通知。Notifies the ActivityDesigner when a connection is established between two connection points.

OnDragDrop(ActivityDragEventArgs)

在设计器边界内完成拖放操作时发生。Occurs when the drag-drop operation is completed inside designer bounds.

OnDragEnter(ActivityDragEventArgs)

当正在执行拖放操作且指针进入设计器边界时发生。Occurs when the drag-drop operation is in progress and the pointer enters the designer bounds.

OnDragLeave()

当正在执行拖放操作且指针移出设计器边界时发生。Occurs when the drag-drop operation is in progress and the pointer leaves the designer bounds.

OnDragOver(ActivityDragEventArgs)

当正在执行拖放操作且指针位于设计器边界内时发生。Occurs when the drag-drop operation is in progress and the pointer is within the designer bounds.

OnEndResizing()

在设计器位于 ActivityDesigner 中的情况下用户完成直观地调整活动设计器的大小时,向 FreeformActivityDesigner 发出通知。Notifies the ActivityDesigner when a user is finished visually resizing the activity designer when the designer is in a FreeformActivityDesigner.

OnExecuteDesignerAction(DesignerAction)

当用户单击与设计器关联的配置错误时,向 ActivityDesigner 发出通知。Notifies the ActivityDesigner when the user clicks on the configuration errors associated with the designer.

OnGiveFeedback(GiveFeedbackEventArgs)

更新执行拖动操作时提供给用户的反馈的视觉提示。Updates the visual cues for feedback supplied to the user when performing a drag operation.

OnKeyDown(KeyEventArgs)

在设计器有键盘焦点的情况下按下键时发生。Occurs when a key is pressed when the designer has the keyboard focus.

OnKeyUp(KeyEventArgs)

在设计器有键盘焦点的情况下释放键时发生。Occurs when a key is released when the designer has keyboard focus.

OnLayoutPosition(ActivityDesignerLayoutEventArgs)

当用户重新定位其视觉提示或子活动设计器时,向ActivityDesigner发出通知。Notifies the ActivityDesigner when a user repositions its visual cues or child activity designers.

OnLayoutSize(ActivityDesignerLayoutEventArgs)

返回 ActivityDesigner 上的视觉提示或子活动设计器的大小。Returns the size of the visual cues or child activity designers on the ActivityDesigner.

OnMouseCaptureChanged()

在鼠标捕获发生更改时发生。Occurs when the mouse capture changes.

OnMouseDoubleClick(MouseEventArgs)

在设计器上多次单击鼠标按钮时发生。Occurs when the mouse button is clicked multiple times on the designer.

OnMouseDown(MouseEventArgs)

在指针位于设计器边界内的情况下按下鼠标按钮时发生。Occurs when the mouse button is pressed when the pointer is in designer bounds.

OnMouseDragBegin(Point, MouseEventArgs)

当用户开始在设计器上拖动鼠标时发生。Occurs when the user starts to drag the mouse on the designer.

OnMouseDragEnd()

当用户停止在设计器上拖动鼠标时发生。Occurs when the user stops dragging the mouse on the designer.

OnMouseDragMove(MouseEventArgs)

在用户在设计器上拖动指针的过程中鼠标每次发生移动时发生。Occurs on each movement of the mouse as the user drags the pointer over the designer.

OnMouseEnter(MouseEventArgs)

当鼠标第一次进入设计器边界时发生。Occurs when the mouse first enters the designer bounds.

OnMouseHover(MouseEventArgs)

当指针位于设计器边界内时发生。Occurs when the pointer is in designer bounds.

OnMouseLeave()

当指针移出设计器边界时发生。Occurs when the pointer leaves designer bounds.

OnMouseMove(MouseEventArgs)

当指针在设计器边界内移动时发生。Occurs when the pointer is moving in designer bounds.

OnMouseUp(MouseEventArgs)

在指针位于设计器边界内的情况下释放鼠标按钮时发生。Occurs when the mouse button is released when the pointer is in designer bounds.

OnPaint(ActivityDesignerPaintEventArgs)

在设计时绘制活动的可视表示形式。Draws the visual representation of the activity at design time.

OnProcessMessage(Message)

允许设计器处理原始 Win32 消息。Allows the designer to process raw Win32 messages.

OnQueryContinueDrag(QueryContinueDragEventArgs)

控制拖动操作是否应继续。Controls whether the drag operation should continue.

OnResizing(ActivityDesignerResizeEventArgs)

当用户在设计时直观地调整其大小时,向 ActivityDesigner 发出通知。Notifies the ActivityDesigner when a user is visually resizing it at design time. 仅当活动设计器是 FreeformActivityDesigner 的子级时,才会调用此方法。The method is only called if the activity designer is a child of a FreeformActivityDesigner.

OnScroll(ScrollBar, Int32)

在用户更改滚动位置时,向 ActivityDesigner 发出通知。Notifies the ActivityDesigner when a user changes the scroll position.

OnShowSmartTagVerbs(Point)

显示与指定点的智能标记关联的设计器谓词。Displays the designer verbs associated with a smart tag at the specified point.

OnSmartTagVisibilityChanged(Boolean)

ActivityDesigner通知应该显示还是隐藏智能标记。Notifies the ActivityDesigner whether a smart tag should be displayed or hidden.

OnThemeChange(ActivityDesignerTheme)

向设计器通知关联的主题已发生更改。Notifies the designer that the associated theme has changed.

PerformLayout()

更新设计器的布局。Updates the layout of the designer.

PointToLogical(Point)

将点从屏幕坐标系转换为活动设计器坐标系。Transforms a point from screen coordinate system to the activity designer coordinate system.

PointToScreen(Point)

将点从活动设计器坐标系转换为屏幕坐标系。Transforms a point from the activity designer coordinate system to the screen coordinate system.

PostFilterAttributes(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的特性集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

PostFilterEvents(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的事件集中的项。When overridden in a derived class, allows the designer to change or remove items from the set of events that it exposes through a TypeDescriptor.

PostFilterProperties(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的属性集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor.

PreFilterAttributes(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的特性集中添加项。When overridden in a derived class, allows a designer to add items to the set of attributes that it exposes through a TypeDescriptor.

PreFilterEvents(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的事件集中添加项。When overridden in a derived class, allows a designer to add items to the set of events that it exposes through a TypeDescriptor.

PreFilterProperties(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的属性集中添加项。When overridden in a derived class, allows a designer to add items to the set of properties that it exposes through a TypeDescriptor.

RectangleToLogical(Rectangle)

将矩形从屏幕坐标系转换为活动设计器坐标系。Transforms a rectangle from the screen coordinate system to the activity designer coordinate system.

RectangleToScreen(Rectangle)

将矩形从活动设计器坐标系转换为屏幕坐标系。Transforms a rectangle from the activity designer coordinate system to the screen coordinate system.

RefreshDesignerActions()

刷新与设计器关联的配置错误。Refreshes the configuration errors associated with the designer.

RefreshDesignerVerbs()

通过调用状态处理程序,刷新与设计器关联的活动设计器谓词。Refreshes the activity designer verbs associated with the designer by calling the status handler.

SaveViewState(BinaryWriter)

将设计器的视图状态存储到二进制流中。Stores the view state of the designer into a binary stream.

ShowInfoTip(String)

显示指定的信息提示。Shows the specified info tip.

ShowInfoTip(String, String)

使用指定的标题和文本显示 ActivityDesigner 的信息提示。Displays the info tip for the ActivityDesigner with the specified title and text.

ShowInPlaceTip(String, Rectangle)

在指定的矩形位置显示指定的工具提示。Displays the specified tool tip in the specified rectangle location.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IDesigner.Component

获取与活动设计器关联的基组件。Gets the base component with which the activity designer is associated.

IDesigner.DoDefaultAction()

执行与设计器关联的默认操作。Performs the default action associated with the designer.

IDesigner.Initialize(IComponent)

使用关联的活动初始化设计器。Initializes the designer with the associated activity.

IDesigner.Verbs

获取与活动设计器关联的设计时谓词。Gets the design-time verbs associated with the activity designer.

IDesignerFilter.PostFilterAttributes(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的特性集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

IDesignerFilter.PostFilterEvents(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的事件集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of events that it exposes through a TypeDescriptor.

IDesignerFilter.PostFilterProperties(IDictionary)

当在派生类中重写时,允许设计器更改或移除它通过 TypeDescriptor 公开的属性集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor.

IDesignerFilter.PreFilterAttributes(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的特性集中添加项。When overridden in a derived class, allows a designer to add items to the set of attributes that it exposes through a TypeDescriptor.

IDesignerFilter.PreFilterEvents(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的事件集中添加项。When overridden in a derived class, allows a designer to add items to the set of events that it exposes through a TypeDescriptor.

IDesignerFilter.PreFilterProperties(IDictionary)

当在派生类中重写时,允许设计器向它通过 TypeDescriptor 公开的属性集中添加项。When overridden in a derived class, allows a designer to add items to the set of properties that it exposes through a TypeDescriptor.

IPersistUIState.LoadViewState(BinaryReader)

从二进制流还原视图状态。Restores the view state from a binary stream.

IPersistUIState.SaveViewState(BinaryWriter)

将视图状态保存到二进制流。Saves the view state to a binary stream.

IRootDesigner.GetView(ViewTechnology)

返回指定视图技术的视图对象。Returns a view object for the specified view technology.

IRootDesigner.SupportedTechnologies

获取活动设计器可为其显示提供支持的技术集。Gets the array of technologies that the activity designer can support for its display.

IToolboxUser.GetToolSupported(ToolboxItem)

确定当前活动设计器是否支持指定的工具箱项。Determines whether the specified Toolbox item is supported by the current activity designer.

IToolboxUser.ToolPicked(ToolboxItem)

选择指定的工具箱项。Selects the specified toolbox item.

IWorkflowRootDesigner.InvokingDesigner

获取或设置请求要初始化的活动设计器的 CompositeActivityDesignerGets or sets the CompositeActivityDesigner that requested the activity designer be initialized.

IWorkflowRootDesigner.IsSupportedActivityType(Type)

返回一个值,该值指示当前 ActivityDesigner 是否支持指定的类型。Returns a value that indicates whether the specified type is supported on the current ActivityDesigner.

IWorkflowRootDesigner.MessageFilters

获取与活动设计器关联的任何消息筛选器。Gets any message filters associated with the activity designer.

IWorkflowRootDesigner.SupportsLayoutPersistence

获取一个值,该值指示实际的工作流根设计器是否支持布局持久性。Gets the value that indicates whether the actual workflow root designer supports the layout persistence.

适用于