AddAndForceUniqueID(SvgElement, SvgElement, Boolean, Action<SvgElement, String, String>) Method

Definition

Namespace Svg
Assembly Svg.Custom.dll

Adds the specified SvgElement for ID management. And can auto fix the ID if it already exists or it starts with a number.

public virtual bool AddAndForceUniqueID(SvgElement element, SvgElement sibling, bool autoForceUniqueID = true, Action<SvgElement, string, string> logElementOldIDNewID = null)

Parameters

element
SvgElement

The SvgElement to be managed.

sibling
SvgElement

Not used.

autoForceUniqueID
Boolean

Pass true here, if you want the ID to be fixed

logElementOldIDNewID
Action<SvgElement, String, String>

If not null, the action is called before the id is fixed

Returns

Boolean
true, if ID was altered