Table of Contents

Class EditorFormDesignerDataSource

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

Provides extended properties and methods for a Form Designer control's data source.

public class EditorFormDesignerDataSource : IFormDesignerDataSource
Inheritance
EditorFormDesignerDataSource
Implements

Constructors

EditorFormDesignerDataSource(string, Func<string, IFormDesignerTextSource>, IEnumerable<DesignerAssemblyResources>, string)

Initializes a new instance of the EditorFormDesignerDataSource class with specified settings.

Properties

AssemblyResources

Gets the list of form designer's assembly resources.

DefaultResourceFileName

Gets name of the resource file.

DefaultResourceTextSource

Gets IFormDesignerTextSource corresponding to the resource code.

DesignedClassFullName

Gets the fully qualified name of designed class.

DesignedComponentAssembly

Gets a IDesignedComponentAssemblyProvider used to retrieve data from specified assembly.

DesignerFileName

Gets name of the file with designer generated code.

DesignerTextSource

Gets IFormDesignerTextSource corresponding to the designer generated code.

IsModified

Represents a value indicating whether designer content has been modified since last save.

ResourceFileName

Gets name of the resource file.

ResourceFileNames

Gets list of the resource file names.

ResourceTextSource

Gets IFormDesignerTextSource corresponding to the resource code.

ResourceTextSources

Gets a list of the IFormDesignerTextSource objects containing resources.

UserCodeFileName

Gets name of the file with user code.

UserCodeTextSource

Gets IFormDesignerTextSource corresponding to the user code.

Methods

GetResourceFileName(CultureInfo)

Finds resource file name.

GetResourceTextSource(CultureInfo)

Finds text source containing resource data.

InsertTextIntoUserCode(TextInsertionOperation[])

Inserts specified text fragments into the user code.

OpenDesignerStream(StreamAccessMode)

Opens designer stream with specified access mode.

OpenResourceStream(StreamAccessMode, CultureInfo)

Opens resource stream with specified access mode.

OpenUserCodeStreamForReading()

Opens user code stream with default access mode.

ReplaceTextInDesignerCode(TextReplacementOperation[])

Replaces specified text fragments within the user code.

Save()

Serializes designer content.

Events

ResourceCultureAdded

Occurs when IFormDesignerDataSource requests culture-specific designer resources.