DocumentDesigner 類別

定義

針對支援巢狀控制項並應該接收捲動訊息的 Control,可用於擴充其設計模式行為,並提供其根層級設計模式檢視的基底設計工具類別。

public ref class DocumentDesigner : System::Windows::Forms::Design::ScrollableControlDesigner, IDisposable, System::ComponentModel::Design::IRootDesigner, System::Drawing::Design::IToolboxUser
public class DocumentDesigner : System.Windows.Forms.Design.ScrollableControlDesigner, IDisposable, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser
type DocumentDesigner = class
    inherit ScrollableControlDesigner
    interface IRootDesigner
    interface IDesigner
    interface IDisposable
    interface IToolboxUser
Public Class DocumentDesigner
Inherits ScrollableControlDesigner
Implements IDisposable, IRootDesigner, IToolboxUser
繼承
實作

備註

此設計工具是根設計工具,這表示當關聯檔在設計模式中檢視時,它會提供關聯檔的根層級設計模式檢視。

您可以使用 將設計工具與型 DesignerAttribute 別產生關聯。 如需自訂設計階段行為的概觀,請參閱 擴充Design-Time支援

建構函式

DocumentDesigner()

初始化 DocumentDesigner 類別的新執行個體。

欄位

accessibilityObj

指定設計工具的可及性物件。

(繼承來源 ControlDesigner)
menuEditorService

將 menuEditorService 變數初始化為 null

屬性

AccessibilityObject

取得指定給控制項的 AccessibleObject

(繼承來源 ControlDesigner)
ActionLists

取得與設計工具相關之元件所支援的設計階段動作清單。

(繼承來源 ComponentDesigner)
AllowControlLasso

取得值,指出是否重設選取之控制項的父代。

(繼承來源 ParentControlDesigner)
AllowGenericDragBox

取得值,指出將工具箱項目拖曳至設計工具的介面上時,是否應繪製泛型拖曳方塊。

(繼承來源 ParentControlDesigner)
AllowSetChildIndexOnDrop

取得值,指出將控制項拖曳至 ParentControlDesigner 時,是否應維持被拖曳控制項的疊置順序 (Z-order)。

(繼承來源 ParentControlDesigner)
AssociatedComponents

取得元件集合,該集合與設計工具管理的元件相關聯。

(繼承來源 ControlDesigner)
AutoResizeHandles

取得或設定值,指出縮放控點的配置是否取決於 AutoSize 屬性的值。

(繼承來源 ControlDesigner)
BehaviorService

從設計環境取得 BehaviorService

(繼承來源 ControlDesigner)
Component

取得這個設計工具正在設計的元件。

(繼承來源 ComponentDesigner)
Control

取得設計工具正在設計的控制項。

(繼承來源 ControlDesigner)
DefaultControlLocation

取得加入至設計工具的控制項的預設位置。

(繼承來源 ParentControlDesigner)
DrawGrid

取得或設定值,指出是否應在這個設計工具的控制項上繪製格線。

(繼承來源 ParentControlDesigner)
EnableDragRect

取得值,指出是否由設計工具繪製拖曳矩形。

(繼承來源 ParentControlDesigner)
GridSize

取得或設定設計工具在繪製格線模式時,所繪製的格線中每一個方形的大小。

(繼承來源 ParentControlDesigner)
InheritanceAttribute

取得設計工具的 InheritanceAttribute

(繼承來源 ControlDesigner)
Inherited

取得值,表示是否要繼承這個元件。

(繼承來源 ComponentDesigner)
MouseDragTool

取得值,指出設計工具在拖曳作業期間是否具有有效的工具。

(繼承來源 ParentControlDesigner)
ParentComponent

取得 ControlDesigner 的父元件。

(繼承來源 ControlDesigner)
ParticipatesWithSnapLines

取得值,指出 ControlDesigner 是否可以在拖曳作業期間採用以對齊線為準的對齊方式。

(繼承來源 ControlDesigner)
SelectionRules

取得設計工具的 SelectionRules

ShadowProperties

取得覆寫使用者設定的屬性值集合。

(繼承來源 ComponentDesigner)
SnapLines

取得 SnapLine 物件的清單,表示此控制項的重要對齊點。

(繼承來源 ParentControlDesigner)
Verbs

取得與設計工具相關元件所支援的設計階段動詞命令 (Verb)。

(繼承來源 ComponentDesigner)

方法

AddPaddingSnapLines(ArrayList)

加入邊框距離對齊線。

(繼承來源 ParentControlDesigner)
BaseWndProc(Message)

處理 Windows 訊息。

(繼承來源 ControlDesigner)
CanAddComponent(IComponent)

當元件加入至父容器時呼叫。

(繼承來源 ParentControlDesigner)
CanBeParentedTo(IDesigner)

指示指定的設計工具控制項是否可以成為這個設計工具控制項的父系。

(繼承來源 ControlDesigner)
CanParent(Control)

指示指定的控制項是否可以為這個設計工具管理的控制項的子系。

(繼承來源 ParentControlDesigner)
CanParent(ControlDesigner)

指示由指定的設計工具管理的控制項,是否可以是這個設計工具管理的控制項的子系。

(繼承來源 ParentControlDesigner)
CreateTool(ToolboxItem)

利用指定的工具建立元件或控制項,並將其加入至目前的設計文件。

(繼承來源 ParentControlDesigner)
CreateTool(ToolboxItem, Point)

利用指定的工具建立元件或控制項,並將其加入至目前的設計文件中指定的位置。

(繼承來源 ParentControlDesigner)
CreateTool(ToolboxItem, Rectangle)

利用指定的工具建立元件或控制項,並將其加入至指定矩形範圍內的目前設計文件。

(繼承來源 ParentControlDesigner)
CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean)

提供所有 CreateTool(ToolboxItem) 方法的核心功能。

(繼承來源 ParentControlDesigner)
DefWndProc(Message)

提供 Windows 訊息的預設處理。

(繼承來源 ControlDesigner)
DisplayError(Exception)

向使用者顯示指定之例外狀況的相關資訊。

(繼承來源 ControlDesigner)
Dispose()

釋放 ComponentDesigner 所使用的所有資源。

(繼承來源 ComponentDesigner)
Dispose(Boolean)

釋放 DocumentDesigner 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

DoDefaultAction()

在元件上預設事件的原始程式碼檔案中建立方法簽章,並將使用者的游標巡覽至該位置。

(繼承來源 ComponentDesigner)
EnableDesignMode(Control, String)

啟用子控制項的設計階段功能。

(繼承來源 ControlDesigner)
EnableDragDrop(Boolean)

啟用或停用設計中之控制項的拖放支援。

(繼承來源 ControlDesigner)
EnsureMenuEditorService(IComponent)

檢查功能表編輯器服務是否存在,如果不存在,會建立一個服務。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetControl(Object)

從指定元件的設計工具取得控制項。

(繼承來源 ParentControlDesigner)
GetControlGlyph(GlyphSelectionType)

取得主體圖像 (Glyph),表示控制項的界限。

(繼承來源 ParentControlDesigner)
GetGlyphs(GlyphSelectionType)

取得 GlyphCollection,表示 Glyph 物件。

GetGlyphs(GlyphSelectionType)

取得 Glyph 物件的集合,表示標準控制項的選取範圍框線和抓取控點。

(繼承來源 ParentControlDesigner)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetHitTest(Point)

指示在指定的點按一下滑鼠是否應由控制項處理。

(繼承來源 ScrollableControlDesigner)
GetParentForComponent(IComponent)

衍生類別會在加入元件時,據以判斷是否傳回正在設計的控制項,或是其他的 Container

(繼承來源 ParentControlDesigner)
GetService(Type)

嘗試從設計工具元件的設計模式站台擷取指定的服務類型。

(繼承來源 ComponentDesigner)
GetToolSupported(ToolboxItem)

指示設計工具是否支援指定的工具。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

更新所指定矩形的位置,如果啟用了格線對齊模式,並將其調整為對齊格線。

(繼承來源 ParentControlDesigner)
HookChildControls(Control)

從指定的控制項的子控制項傳送訊息至設計工具。

(繼承來源 ControlDesigner)
Initialize(IComponent)

使用指定的元件,初始化設計工具。

InitializeExistingComponent(IDictionary)

重新初始化現有的元件。

(繼承來源 ControlDesigner)
InitializeNewComponent(IDictionary)

初始化新建立的元件。

(繼承來源 ParentControlDesigner)
InitializeNonDefault()

將控制項的屬性初始化為任何非預設值。

(繼承來源 ControlDesigner)
InternalControlDesigner(Int32)

傳回 ControlDesigner 中含指定索引的內部控制項設計工具。

(繼承來源 ControlDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner)

取得指定 InheritanceAttributeComponentDesigner

(繼承來源 ComponentDesigner)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
NumberOfInternalControlDesigners()

傳回 ControlDesigner 中內部控制項設計工具的數目。

(繼承來源 ControlDesigner)
OnContextMenu(Int32, Int32)

在應顯示內容功能表時呼叫。

OnCreateHandle()

在建立設計工具的控制代碼後立即呼叫。

OnDragComplete(DragEventArgs)

需要清除拖放作業時呼叫。

(繼承來源 ParentControlDesigner)
OnDragDrop(DragEventArgs)

在拖放物件放在控制項設計工具檢視上時呼叫。

(繼承來源 ParentControlDesigner)
OnDragEnter(DragEventArgs)

在拖放作業進入控制項設計工具檢視時呼叫。

(繼承來源 ParentControlDesigner)
OnDragLeave(EventArgs)

在拖放作業離開控制項設計工具檢視時呼叫。

(繼承來源 ParentControlDesigner)
OnDragOver(DragEventArgs)

在拖放物件拖曳至控制項設計工具檢視上時呼叫。

(繼承來源 ParentControlDesigner)
OnGiveFeedback(GiveFeedbackEventArgs)

在拖放作業進行中時呼叫,以提供拖曳作業進行時以滑鼠位置為基礎的視覺提示。

(繼承來源 ParentControlDesigner)
OnMouseDragBegin(Int32, Int32)

呼叫以回應在元件上按住滑鼠左鍵。

(繼承來源 ParentControlDesigner)
OnMouseDragEnd(Boolean)

在拖放作業結束時呼叫,以完成或取消作業。

(繼承來源 ParentControlDesigner)
OnMouseDragMove(Int32, Int32)

在拖放作業當中,滑鼠每次移動時呼叫。

(繼承來源 ParentControlDesigner)
OnMouseEnter()

在滑鼠首次進入控制項時呼叫。

(繼承來源 ParentControlDesigner)
OnMouseHover()

在滑鼠停留在控制項上方後呼叫。

(繼承來源 ParentControlDesigner)
OnMouseLeave()

在滑鼠首次進入控制項時呼叫。

(繼承來源 ParentControlDesigner)
OnPaintAdornments(PaintEventArgs)

在設計工具正在管理的控制項繪製其介面時呼叫,讓設計工具可以在控制項之上繪製任何其他的裝飾。

(繼承來源 ParentControlDesigner)
OnSetComponentDefaults()
已過時。
已過時。

當設計工具已初始化時呼叫。

(繼承來源 ControlDesigner)
OnSetCursor()

提供變更目前滑鼠游標的機會。

(繼承來源 ParentControlDesigner)
PostFilterAttributes(IDictionary)

允許設計工具變更或移除它經由 TypeDescriptor 公開的屬性集中的項目。

(繼承來源 ComponentDesigner)
PostFilterEvents(IDictionary)

允許設計工具變更或移除它經由 TypeDescriptor 公開的事件集中的項目。

(繼承來源 ComponentDesigner)
PostFilterProperties(IDictionary)

允許設計工具變更或移除它經由 TypeDescriptor 公開的屬性集中的項目。

(繼承來源 ComponentDesigner)
PreFilterAttributes(IDictionary)

允許設計工具加入至它經由 TypeDescriptor 公開的屬性集。

(繼承來源 ComponentDesigner)
PreFilterEvents(IDictionary)

允許設計工具加入至它經由 TypeDescriptor 公開的事件集。

(繼承來源 ComponentDesigner)
PreFilterProperties(IDictionary)

調整元件透過 TypeDescriptor 公開的屬性集。

RaiseComponentChanged(MemberDescriptor, Object, Object)

告知 IComponentChangeService 這個元件已經變更。

(繼承來源 ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

告知 IComponentChangeService 這個元件正要變更。

(繼承來源 ComponentDesigner)
ToolPicked(ToolboxItem)

選取指定的工具。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
UnhookChildControls(Control)

將指定的控制項的子系訊息傳送至每一個控制項,而非傳送至父設計工具。

(繼承來源 ControlDesigner)
WndProc(Message)

處理 Windows 訊息。

WndProc(Message)

處理 Windows 訊息,並在設計階段時傳遞 WM_HSCROLL 和 WM_VSCROLL 訊息至控制項。

(繼承來源 ScrollableControlDesigner)

明確介面實作

IDesignerFilter.PostFilterAttributes(IDictionary)

如需這個成員的描述,請參閱 PostFilterAttributes(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

如需這個成員的描述,請參閱 PostFilterEvents(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

如需這個成員的描述,請參閱 PostFilterProperties(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

如需這個成員的描述,請參閱 PreFilterAttributes(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

如需這個成員的描述,請參閱 PreFilterEvents(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

如需這個成員的描述,請參閱 PreFilterProperties(IDictionary) 方法。

(繼承來源 ComponentDesigner)
IRootDesigner.GetView(ViewTechnology)

如需這個成員的說明,請參閱 ViewTechnology

IRootDesigner.SupportedTechnologies

如需這個成員的說明,請參閱 SupportedTechnologies

IToolboxUser.GetToolSupported(ToolboxItem)

如需這個成員的說明,請參閱 GetToolSupported(ToolboxItem)

IToolboxUser.ToolPicked(ToolboxItem)

如需這個成員的說明,請參閱 ToolPicked(ToolboxItem)

ITreeDesigner.Children

如需這個成員的描述,請參閱 Children 屬性。

(繼承來源 ComponentDesigner)
ITreeDesigner.Parent

如需這個成員的描述,請參閱 Parent 屬性。

(繼承來源 ComponentDesigner)

適用於

另請參閱