Compartir a través de


DesignSurfaceExtension.Initialize Method

Initializes the design surface extension.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overridable Sub Initialize ( _
    surface As DesignSurface _
)
public virtual void Initialize(
    DesignSurface surface
)
public:
virtual void Initialize(
    DesignSurface^ surface
)
abstract Initialize : 
        surface:DesignSurface -> unit  
override Initialize : 
        surface:DesignSurface -> unit
public function Initialize(
    surface : DesignSurface
)

Parameters

  • surface
    Type: DesignSurface

    The design surface that is being created.

Exceptions

Exception Condition
ArgumentNullException

surface is nulla null reference (Nothing in Visual Basic).

Remarks

If you do not need any initialization you do not need to override this method.

.NET Framework Security

See Also

Reference

DesignSurfaceExtension Class

Microsoft.VisualStudio.Shell.Design Namespace

DesignSurfaceExtensionAttribute

DesignSurfaceExtension

DesignSurface

IDesigner

IDesignerHost

Other Resources

Extending Design-Time Support