HtmlTextWriter.SpaceChar Field

Represents a space ( ) character.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public:
literal wchar_t SpaceChar
public static final char SpaceChar
public const var SpaceChar : char
Not applicable.

The SpaceChar field is used by the RenderBeginTag and WriteAttribute methods when writing separators between elements and attributes.

This section provides two code examples. The first one demonstrates how to create a character array. The second one demonstrates how to use the array.

These code examples generate the following markup:

<label>

hello world

</label>

The following code example shows how to create a Char array that contains the SpaceChar field.

No code example is currently available or this language may not be supported.

The following code example shows how to use the array that was created in the preceding code example as a parameter when calling the Write method.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: