Markdown FileGenerate Id From Title Method
This is used to generate a content ID from a title
Definition
Namespace: Sandcastle.Core.Markdown
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
An ID generated from the title. All non-alphanumeric characters are replaced with dashes. Runs of multiple dashes are replaced with a single dash. Leading and trailing dashes are removed.
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static string GenerateIdFromTitle(
string title
)VB
Public Shared Function GenerateIdFromTitle (
title As String
) As StringC++
public:
static String^ GenerateIdFromTitle(
String^ title
)F#
static member GenerateIdFromTitle :
title : string -> string Parameters
- title String
- The title to convert to an ID
Return Value
StringAn ID generated from the title. All non-alphanumeric characters are replaced with dashes. Runs of multiple dashes are replaced with a single dash. Leading and trailing dashes are removed.