DiagramLite Programmer's Guide
XmlPersistContext.ReadString Method (String, XElement, String)
See Also
 





Reads a string value with the specified name.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public string ReadString (
    string elementName,
    XElement parentElement,
    string defaultValue
)

Visual Basic  Copy Code

Public Function ReadString( _
    elementName As String, _
    parentElement As XElement, _
    defaultValue As String _
) As String

 Parameters

elementName

The name of the element containing the string value.

parentElement

The parent element of the node with the specified name.

defaultValue

The value to return if the specified element is not found.

 Return Value

A string value. Returns an empty string if there is no element with the specified name under the specified parent and defaultValue.

 See Also

ReadString Method Overload List
XmlPersistContext Members
XmlPersistContext Class
MindFusion.Diagramming Namespace