C# 클래스 AspNetEdit.Editor.ComponentModel.Document

파일 보기 프로젝트 열기: mono/aspeditor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ControlSubstituteStructure string
DirectivePlaceholderStructure string
newDocument string

Private Properties

프로퍼티 타입 설명
ConstructErrorDocument string
GetView void
initDocument void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ConstructErrorDocument ( string errorTitle, string errorDetails ) : string
GetView ( ) : void
initDocument ( Control parent, DesignerHost host ) : void

메소드 상세

AddControl() 공개 메소드

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

AddDirective() 공개 메소드

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

DeserializeAndAdd() 공개 메소드

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
리턴 string

DoCommand() 공개 메소드

public DoCommand ( string editorCommand ) : void
editorCommand string
리턴 void

Document() 공개 메소드

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
리턴 System

Document() 공개 메소드

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

GetDirectives() 공개 메소드

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

GetFirstDirective() 공개 메소드

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
리턴 AspNetEdit.Editor.ComponentModel.DocumentDirective

GetLoadedDocument() 공개 메소드

public GetLoadedDocument ( ) : string
리턴 string

InsertFragment() 공개 메소드

public InsertFragment ( string fragment ) : void
fragment string
리턴 void

PersistDocument() 공개 메소드

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

RemoveControl() 공개 메소드

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

RemoveDirective() 공개 메소드

public RemoveDirective ( int placeholderId ) : string
placeholderId int
리턴 string

RenameControl() 공개 메소드

public RenameControl ( string oldName, string newName ) : void
oldName string
newName string
리턴 void

RenderDesignerControl() 공개 정적인 메소드

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

Serialize() 공개 메소드

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

프로퍼티 상세

ControlSubstituteStructure 공개적으로 정적으로 프로퍼티

public static string ControlSubstituteStructure
리턴 string

DirectivePlaceholderStructure 공개적으로 정적으로 프로퍼티

public static string DirectivePlaceholderStructure
리턴 string

newDocument 공개적으로 정적으로 프로퍼티

public static string newDocument
리턴 string