Table of Contents

Class FormDesignerDataSource

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v10.dll

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

public class FormDesignerDataSource : IFormDesignerDataSource
Inheritance
FormDesignerDataSource
Implements

Constructors

FormDesignerDataSource(string, string, string, IEnumerable<DesignerAssemblyResources>, string)

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

Properties

AssemblyResources

Gets the list of form designer's assembly resources.

DefaultResourceFileName

Gets name of the resource file.

DesignedClassFullName

Gets the fully qualified name of designed class.

DesignedComponentAssembly

Gets a DesignedComponentAssemblyFileProvider used by this data source.

DesignerFileName

Gets name of the file with designer generated code.

IsModified

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

ResourceFileName

Gets name of the resource file.

SupportsCultureResources

Gets the boolean value indicating if data source supports culture-specific resources.

UserCodeFileName

Gets name of the file with user code.

UserCodeLanguage

Gets the language in which the user code is written.

Methods

GetResourceFileName(CultureInfo)

When implemented by a class, gets resource file specific to the culture.

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.

Events

ResourceCultureAdded

Occurs when IFormDesignerDataSource requests culture-specific designer resources.