SvgSaveOptions.IdPrefix

SvgSaveOptions IdPrefix property. Specifies a prefix that is prepended to all generated element IDs in the output document. Default value is null and no prefix is prepended.

SvgSaveOptions.IdPrefix property

Specifies a prefix that is prepended to all generated element IDs in the output document. Default value is null and no prefix is prepended.

public string IdPrefix { get; set; }

Exceptions

exceptioncondition
ArgumentExceptionThe value does not meet the requirements specified above.

Remarks

If the prefix is specified, it can contain only letters, digits, underscores, and hyphens, and must start with a letter.

Examples

Shows how to specify custom id prefix in SVG.

SvgSaveOptions svgSaveOptions = new SvgSaveOptions();
svgSaveOptions.IdPrefix = "myprefix_";

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "SaveOptions.IdPrefix.svg", svgSaveOptions)
    .Execute();

See Also