HtmlFixedSaveOptions.IdPrefix
HtmlFixedSaveOptions 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.
HtmlFixedSaveOptions.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
exception | condition |
---|---|
ArgumentException | The 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 Id prefix in HtmlFixed format.
HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.IdPrefix = "example_";
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlFixedSaveOptions.IdPrefix.html", htmlFixedSaveOptions)
.Execute();
See Also
- class HtmlFixedSaveOptions
- namespace Wordize.Saving
- assembly Wordize