C# Class AspNetEdit.Editor.ComponentModel.Document

Mostra file Open project: mono/aspeditor Class Usage Examples

Public Properties

Property Type Description
ControlSubstituteStructure string
DirectivePlaceholderStructure string
newDocument string

Private Properties

Property Type Description
ConstructErrorDocument string
GetView void
initDocument void

Public Methods

Method Description
AddControl ( Control control ) : void
AddDirective ( string name, IDictionary values ) : string

Adds a directive port tracking.

DeserializeAndAdd ( string aspFragment ) : string

Converts a ASP.NET fragment to a a designer document fragment, and adds the controls and directives etc to the host.

DoCommand ( string editorCommand ) : void
Document ( Control parent, DesignerHost host, Stream fileStream, string fileName ) : System

Creates a document from an existing file

Document ( Control parent, DesignerHost host, string documentName ) : System

Creates a new document

GetDirectives ( string directiveType ) : AspNetEdit.Editor.ComponentModel.DocumentDirective[]

Gets all of the directives of a given type

GetFirstDirective ( string directiveType, bool create ) : AspNetEdit.Editor.ComponentModel.DocumentDirective

Gets the first directive of a given type

GetLoadedDocument ( ) : string
InsertFragment ( string fragment ) : void
PersistDocument ( ) : string

Serialises the entire document to ASP.NET code

RemoveControl ( Control control ) : void
RemoveDirective ( int placeholderId ) : string
RenameControl ( string oldName, string newName ) : void
RenderDesignerControl ( Control control ) : string

Renders the designer html for an ASP.NET Control

Serialize ( string designerDocumentFragment ) : string

Converts a designer document fragment to ASP.NET code

Private Methods

Method Description
ConstructErrorDocument ( string errorTitle, string errorDetails ) : string
GetView ( ) : void
initDocument ( Control parent, DesignerHost host ) : void

Method Details

AddControl() public method

public AddControl ( Control control ) : void
control System.Web.UI.Control
return void

AddDirective() public method

Adds a directive port tracking.
public AddDirective ( string name, IDictionary values ) : string
name string
values IDictionary
return string

DeserializeAndAdd() public method

Converts a ASP.NET fragment to a a designer document fragment, and adds the controls and directives etc to the host.
public DeserializeAndAdd ( string aspFragment ) : string
aspFragment string
return string

DoCommand() public method

public DoCommand ( string editorCommand ) : void
editorCommand string
return void

Document() public method

Creates a document from an existing file
public Document ( Control parent, DesignerHost host, Stream fileStream, string fileName ) : System
parent System.Web.UI.Control
host DesignerHost
fileStream Stream
fileName string
return System

Document() public method

Creates a new document
public Document ( Control parent, DesignerHost host, string documentName ) : System
parent System.Web.UI.Control
host DesignerHost
documentName string
return System

GetDirectives() public method

Gets all of the directives of a given type
public GetDirectives ( string directiveType ) : AspNetEdit.Editor.ComponentModel.DocumentDirective[]
directiveType string
return AspNetEdit.Editor.ComponentModel.DocumentDirective[]

GetFirstDirective() public method

Gets the first directive of a given type
public GetFirstDirective ( string directiveType, bool create ) : AspNetEdit.Editor.ComponentModel.DocumentDirective
directiveType string
create bool Whether the directive should be created if one does not already exist
return AspNetEdit.Editor.ComponentModel.DocumentDirective

GetLoadedDocument() public method

public GetLoadedDocument ( ) : string
return string

InsertFragment() public method

public InsertFragment ( string fragment ) : void
fragment string
return void

PersistDocument() public method

Serialises the entire document to ASP.NET code
public PersistDocument ( ) : string
return string

RemoveControl() public method

public RemoveControl ( Control control ) : void
control System.Web.UI.Control
return void

RemoveDirective() public method

public RemoveDirective ( int placeholderId ) : string
placeholderId int
return string

RenameControl() public method

public RenameControl ( string oldName, string newName ) : void
oldName string
newName string
return void

RenderDesignerControl() public static method

Renders the designer html for an ASP.NET Control
public static RenderDesignerControl ( Control control ) : string
control System.Web.UI.Control
return string

Serialize() public method

Converts a designer document fragment to ASP.NET code
public Serialize ( string designerDocumentFragment ) : string
designerDocumentFragment string
return string

Property Details

ControlSubstituteStructure public_oe static_oe property

public static string ControlSubstituteStructure
return string

DirectivePlaceholderStructure public_oe static_oe property

public static string DirectivePlaceholderStructure
return string

newDocument public_oe static_oe property

public static string newDocument
return string