BasicDesignerLoader Class

 

Provides an implementation of the IDesignerLoaderService interface.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)


[SecurityCriticalAttribute]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public abstract class BasicDesignerLoader : DesignerLoader, IDesignerLoaderService

NameDescription
System_CAPS_protmethodBasicDesignerLoader()

Initializes a new instance of the BasicDesignerLoader class.

NameDescription
System_CAPS_protpropertyLoaderHost

Gets the loader host.

System_CAPS_pubpropertyLoading

Gets a value indicating whether the designer loader is loading the design surface.(Overrides DesignerLoader.Loading.)

System_CAPS_protpropertyModified

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

System_CAPS_protpropertyPropertyProvider

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

System_CAPS_protpropertyReloadPending

Gets a value indicating whether a reload has been queued.

NameDescription
System_CAPS_pubmethodBeginLoad(IDesignerLoaderHost)

Starts the loading process.(Overrides DesignerLoader.BeginLoad(IDesignerLoaderHost).)

System_CAPS_pubmethodDispose()

Releases the resources used by the BasicDesignerLoader.(Overrides DesignerLoader.Dispose().)

System_CAPS_protmethodEnableComponentNotification(Boolean)

Enables or disables component notification with the DesignerLoader.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFlush()

Flushes pending changes to the designer loader.(Overrides DesignerLoader.Flush().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetService(Type)

Gets the requested service.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInitialize()

Initializes services.

System_CAPS_protmethodIsReloadNeeded()

Indicates whether the designer should be reloaded.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnBeginLoad()

Notifies the designer loader that loading is about to begin.

System_CAPS_protmethodOnBeginUnload()

Notifies the designer loader that unloading is about to begin.

System_CAPS_protmethodOnEndLoad(Boolean, ICollection)

Notifies the designer loader that loading is complete.

System_CAPS_protmethodOnModifying()

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

System_CAPS_protmethodPerformFlush(IDesignerSerializationManager)

Flushes all changes to the designer.

System_CAPS_protmethodPerformLoad(IDesignerSerializationManager)

Loads a designer from persistence.

System_CAPS_protmethodReload(BasicDesignerLoader.ReloadOptions)

Queues a reload of the designer.

System_CAPS_protmethodReportFlushErrors(ICollection)

Reports errors that occurred while flushing changes.

System_CAPS_protmethodSetBaseComponentClassName(String)

Sets the full class name of the base component.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDesignerLoaderService.AddLoadDependency()

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDesignerLoaderService.DependentLoadComplete(Boolean, ICollection)

Signals that a dependent load has finished.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDesignerLoaderService.Reload()

Reloads the design document.

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.

NamedPermissionSet

for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: