C# Class AspNetEdit.Editor.ComponentModel.Document

Afficher le fichier Open project: mono/aspeditor Class Usage Examples

Méthodes publiques

Свойство Type Description
ControlSubstituteStructure string
DirectivePlaceholderStructure string
newDocument string

Private Properties

Свойство Type Description
ConstructErrorDocument string
GetView void
initDocument void

Méthodes publiques

Méthode 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

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

Method Details

AddControl() public méthode

public AddControl ( Control control ) : void
control System.Web.UI.Control
Résultat void

AddDirective() public méthode

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

DeserializeAndAdd() public méthode

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
Résultat string

DoCommand() public méthode

public DoCommand ( string editorCommand ) : void
editorCommand string
Résultat void

Document() public méthode

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
Résultat System

Document() public méthode

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

GetDirectives() public méthode

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

GetFirstDirective() public méthode

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
Résultat AspNetEdit.Editor.ComponentModel.DocumentDirective

GetLoadedDocument() public méthode

public GetLoadedDocument ( ) : string
Résultat string

InsertFragment() public méthode

public InsertFragment ( string fragment ) : void
fragment string
Résultat void

PersistDocument() public méthode

Serialises the entire document to ASP.NET code
public PersistDocument ( ) : string
Résultat string

RemoveControl() public méthode

public RemoveControl ( Control control ) : void
control System.Web.UI.Control
Résultat void

RemoveDirective() public méthode

public RemoveDirective ( int placeholderId ) : string
placeholderId int
Résultat string

RenameControl() public méthode

public RenameControl ( string oldName, string newName ) : void
oldName string
newName string
Résultat void

RenderDesignerControl() public static méthode

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

Serialize() public méthode

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

Property Details

ControlSubstituteStructure public_oe static_oe property

public static string ControlSubstituteStructure
Résultat string

DirectivePlaceholderStructure public_oe static_oe property

public static string DirectivePlaceholderStructure
Résultat string

newDocument public_oe static_oe property

public static string newDocument
Résultat string