C# Class Docu.Output.Rendering.SparkTemplateBase

All public or protected methods and properties on this class are available within documentation templates
Inheritance: Spark.AbstractSparkView, IDocuTemplate
Exibir arquivo Open project: cdrnet/docu

Protected Properties

Property Type Description
Formatter HtmlOutputFormatter

Public Methods

Method Description
Format ( Comment comment ) : string

Returns the comments in a format suitable for display

Format ( IReferencable referencable ) : string

Returns a hyperlink to another symbol

The format of the URL in the returned hyperlink can be controlled by the methods SetNamespaceUrlFormat, SetTypeUrlFormat, SetPropertyUrlFormat, SetMethodUrlFormat, SetFieldUrlFormat and SetEventUrlFormat

OutputMethodParams ( Method method ) : string

Returns a comma-delimited list of the parameters of a given method

SetEventUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to events referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the event {type}The short name of the type that contains the event {event}The name of the event

The default is {type.namespace}/{type}.htm#{event}

SetFieldUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to fields referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the field {type}The short name of the type that contains the field {field}The name of the field

The default is {type.namespace}/{type}.htm#{field}

SetMethodUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to methods referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the method {type}The short name of the type that contains the method {method}The name of method

The default is {type.namespace}/{type}.htm#{method}

SetNamespaceUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to namespaces referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The name of the namespace

The default is {namespace}.htm

SetPropertyUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to properties referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the property {type}The short name of the type that contains the property {property}The name of the property

The default is {type.namespace}/{type}.htm#{property}

SetTypeUrlFormat ( string format ) : void

Configures the pattern that will be used to construct links to types referenced in the documentation of other symbols

The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type {type}The short name of the type

The default is {type.namespace}/{type}.htm

SiteResource ( string path ) : string
WriteAssemblyTitle ( Assembly assembly ) : string

Returns the title of an assembly

WriteFileDescription ( Assembly assembly ) : string

Returns the description of an assembly

WriteInterfaces ( IList interfaces ) : string

Returns a comma-delimited list of the interfaces impleted by a given type

WriteProductName ( Assembly assembly ) : string

Returns the product name of an assembly

WriteVersion ( Assembly assembly ) : string

Returns the version number of an assembly

h ( string content ) : string

HTML encodes the content

Protected Methods

Method Description
SparkTemplateBase ( ) : System

Method Details

Format() public method

Returns the comments in a format suitable for display
public Format ( Comment comment ) : string
comment Docu.Documentation.Comments.Comment
return string

Format() public method

Returns a hyperlink to another symbol
The format of the URL in the returned hyperlink can be controlled by the methods SetNamespaceUrlFormat, SetTypeUrlFormat, SetPropertyUrlFormat, SetMethodUrlFormat, SetFieldUrlFormat and SetEventUrlFormat
public Format ( IReferencable referencable ) : string
referencable IReferencable
return string

OutputMethodParams() public method

Returns a comma-delimited list of the parameters of a given method
public OutputMethodParams ( Method method ) : string
method Docu.Documentation.Method
return string

SetEventUrlFormat() public method

Configures the pattern that will be used to construct links to events referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the event {type}The short name of the type that contains the event {event}The name of the event

The default is {type.namespace}/{type}.htm#{event}

public SetEventUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SetFieldUrlFormat() public method

Configures the pattern that will be used to construct links to fields referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the field {type}The short name of the type that contains the field {field}The name of the field

The default is {type.namespace}/{type}.htm#{field}

public SetFieldUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SetMethodUrlFormat() public method

Configures the pattern that will be used to construct links to methods referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the method {type}The short name of the type that contains the method {method}The name of method

The default is {type.namespace}/{type}.htm#{method}

public SetMethodUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SetNamespaceUrlFormat() public method

Configures the pattern that will be used to construct links to namespaces referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The name of the namespace

The default is {namespace}.htm

public SetNamespaceUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SetPropertyUrlFormat() public method

Configures the pattern that will be used to construct links to properties referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type that contains the property {type}The short name of the type that contains the property {property}The name of the property

The default is {type.namespace}/{type}.htm#{property}

public SetPropertyUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SetTypeUrlFormat() public method

Configures the pattern that will be used to construct links to types referenced in the documentation of other symbols
The pattern can be constructed using the following placeholders: {type.namespace}The namespace of the type {type}The short name of the type

The default is {type.namespace}/{type}.htm

public SetTypeUrlFormat ( string format ) : void
format string The pattern used to construct the link
return void

SiteResource() public method

public SiteResource ( string path ) : string
path string
return string

SparkTemplateBase() protected method

protected SparkTemplateBase ( ) : System
return System

WriteAssemblyTitle() public method

Returns the title of an assembly
public WriteAssemblyTitle ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

WriteFileDescription() public method

Returns the description of an assembly
public WriteFileDescription ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

WriteInterfaces() public method

Returns a comma-delimited list of the interfaces impleted by a given type
public WriteInterfaces ( IList interfaces ) : string
interfaces IList
return string

WriteProductName() public method

Returns the product name of an assembly
public WriteProductName ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

WriteVersion() public method

Returns the version number of an assembly
public WriteVersion ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

h() public method

HTML encodes the content
public h ( string content ) : string
content string
return string

Property Details

Formatter protected_oe property

protected HtmlOutputFormatter,Docu.Output.Rendering Formatter
return HtmlOutputFormatter