Rediger

Del via


BasicDesignerLoader Class

Definition

Provides an implementation of the IDesignerLoaderService interface.

public ref class BasicDesignerLoader abstract : System::ComponentModel::Design::Serialization::DesignerLoader, System::ComponentModel::Design::Serialization::IDesignerLoaderService
public abstract class BasicDesignerLoader : System.ComponentModel.Design.Serialization.DesignerLoader, System.ComponentModel.Design.Serialization.IDesignerLoaderService
[System.Security.SecurityCritical]
public abstract class BasicDesignerLoader : System.ComponentModel.Design.Serialization.DesignerLoader, System.ComponentModel.Design.Serialization.IDesignerLoaderService
type BasicDesignerLoader = class
    inherit DesignerLoader
    interface IDesignerLoaderService
[<System.Security.SecurityCritical>]
type BasicDesignerLoader = class
    inherit DesignerLoader
    interface IDesignerLoaderService
Public MustInherit Class BasicDesignerLoader
Inherits DesignerLoader
Implements IDesignerLoaderService
Inheritance
BasicDesignerLoader
Derived
Attributes
Implements

Remarks

A BasicDesignerLoader is a complete implementation of a designer loader without anything relating to a persistence format. A BasicDesignerLoader does not dictate either a text or binary persistence, but it does support the following features:

  • Multiple load dependencies.

  • Tracking changes within the designer.

  • Deferred idle-time reloading.

A BasicDesignerLoader adds two kinds of services to the designer host's service container: replaceable services and irreplaceable services. You can replace a replaceable service by changing the value of the protected LoaderHost property. You cannot replace irreplaceable services because their implementations depend on each other.

The following table describes the services that are provided by default.

Default Service Description
IDesignerLoaderService Allows objects to request that the designer reload itself when it is idle. This is a replaceable service.
IDesignerSerializationManager Used to serialize and deserialize objects. The serialization manager is added as a service so objects that need to perform serialization can utilize any serialization providers that were added to the serialization manager. This is an irreplaceable service.

Constructors

BasicDesignerLoader()

Initializes a new instance of the BasicDesignerLoader class.

Properties

LoaderHost

Gets the loader host.

Loading

Gets a value indicating whether the designer loader is loading the design surface.

Modified

Gets or sets a value indicating whether the designer has been modified.

PropertyProvider

Gets or sets the property provider for the serialization manager being used by the loader.

ReloadPending

Gets a value indicating whether a reload has been queued.

Methods

BeginLoad(IDesignerLoaderHost)

Starts the loading process.

Dispose()

Releases the resources used by the BasicDesignerLoader.

EnableComponentNotification(Boolean)

Enables or disables component notification with the DesignerLoader.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Flush()

Flushes pending changes to the designer loader.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService(Type)

Gets the requested service.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize()

Initializes services.

IsReloadNeeded()

Indicates whether the designer should be reloaded.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnBeginLoad()

Notifies the designer loader that loading is about to begin.

OnBeginUnload()

Notifies the designer loader that unloading is about to begin.

OnEndLoad(Boolean, ICollection)

Notifies the designer loader that loading is complete.

OnModifying()

Notifies the designer loader that the state of the document is about to be modified.

PerformFlush(IDesignerSerializationManager)

Flushes all changes to the designer.

PerformLoad(IDesignerSerializationManager)

Loads a designer from persistence.

Reload(BasicDesignerLoader+ReloadOptions)

Queues a reload of the designer.

ReportFlushErrors(ICollection)

Reports errors that occurred while flushing changes.

SetBaseComponentClassName(String)

Sets the full class name of the base component.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDesignerLoaderService.AddLoadDependency()

Registers an external component as part of the load process managed by IDesignerLoaderService.

IDesignerLoaderService.DependentLoadComplete(Boolean, ICollection)

Signals that a dependent load has finished.

IDesignerLoaderService.Reload()

Reloads the design document.

Applies to

See also