Click or drag to resize

CommonHelperTextToXmlAttribute Method (XmlWriter, String, String, String)

Only persist the provided name/value pair as an Xml attribute if the value is not null/empty and not the default.

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void TextToXmlAttribute(
	XmlWriter xmlWriter,
	string name,
	string value,
	string def
)

Parameters

xmlWriter
Type: System.XmlXmlWriter
Xml writer to save information into.
name
Type: SystemString
Attribute name.
value
Type: SystemString
Attribute value.
def
Type: SystemString
Default value.
See Also