Topic Transformation ExtensionsTo Indent Method
This is used to convert the given size to an indent consisting of two non-breaking spaces for each
indent level.
Definition
Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
A string containing two non-breaking spaces for each indent level
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static string ToIndent(
this int size
)VB
<ExtensionAttribute>
Public Shared Function ToIndent (
size As Integer
) As StringC++
public:
[ExtensionAttribute]
static String^ ToIndent(
int size
)F#
[<ExtensionAttribute>]
static member ToIndent :
size : int -> string Parameters
- size Int32
- The indent size (zero for no indent)
Return Value
StringA string containing two non-breaking spaces for each indent level