TextTransformation Members

Include Protected Members
Include Inherited Members

The abstract base class for all generated transformation classes. This class also provides utility methods and properties for use in text template code.

The TextTransformation type exposes the following members.

Constructors

 

Name

Description

Protected method

TextTransformation

Initializes a new instance of the TextTransformation class.

Top

Methods

 

Name

Description

Public method

ClearIndent

Resets the CurrentIndent to an empty string.

Public method

Dispose

Overloaded. Releases the resources used by the TextTransformation.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Public method

Error

Creates a new error to store information about errors that occur during the text template transformation process.

Protected method

Finalize

Allows an Object to attempt to free resources and perform other cleanup operations before it is reclaimed by the garbage collector. Called by the garbage collector. (Overrides Object.Finalize().)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

Initialize

Infrastructure. Initializes the TextTransformation class.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

PopIndent

Removes the most recently added text from CurrentIndent.

Public method

PushIndent

Adds text to CurrentIndent, which is prefixed to each line of the generated text output.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

TransformText

When overridden in a derived class, generates the text output of the transformation.

Public method

Warning

Creates a new warning to store information about errors that occur during the text template transformation process.

Public method

Write

Overloaded. Appends text to the GenerationEnvironment. When the text template transformation process is completed, GenerationEnvironment becomes the final generated text output.

Public method

WriteLine

Overloaded. Writes text and the default line terminator to the GenerationEnvironment. When the text template transformation process is completed, GenerationEnvironment becomes the final generated text output.

Top

Properties

 

Name

Description

Public property

CurrentIndent

Gets the current indent text, which is prefixed to each line of the generated text output.

Protected property

Errors

Infrastructure. Gets the error collection for the text template transformation process.

Protected property

GenerationEnvironment

Gets or sets the string that the text template transformation process is using to assemble the generated text output.

Top

See Also

Reference

TextTransformation Class

Microsoft.VisualStudio.TextTemplating Namespace