Click or drag to resize

StringValue Class

Represents the string value for attributes.
Inheritance Hierarchy

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public class StringValue : OpenXmlComparableSimpleReference<string>

The StringValue type exposes the following members.

Constructors
 NameDescription
Public methodStringValue Initializes a new instance of the StringValue class.
Public methodStringValue(String) Initializes a new instance of the StringValue class using the supplied string.
Public methodStringValue(StringValue) Initializes a new instance of the StringValue class by deep copying the supplied StringValue class.
Top
Properties
 NameDescription
Public propertyHasValue Gets a value indicating whether the underneath text value is a valid value.
(Inherited from OpenXmlSimpleType)
Public propertyInnerText Gets or sets the inner XML text.
(Inherited from OpenXmlSimpleType)
Public propertyValue Gets or sets the string value.
(Overrides OpenXmlComparableSimpleReferenceTValue)
Top
Methods
 NameDescription
Public methodClone Creates a duplicate of the current value.
(Inherited from OpenXmlSimpleType)
Public methodCompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from OpenXmlComparableSimpleReferenceT)
Public methodCompareTo(OpenXmlComparableSimpleReferenceT)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from OpenXmlComparableSimpleReferenceT)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from OpenXmlComparableSimpleReferenceT)
Public methodEquals(OpenXmlComparableSimpleReferenceT)Indicates whether the current object is equal to another object of the same type.
(Inherited from OpenXmlComparableSimpleReferenceT)
Public methodStatic memberFromString Returns a new StringValue object that was created from a String value.
Public methodGetHashCodeServes as the default hash function.
(Inherited from OpenXmlComparableSimpleReferenceT)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Returns a String that represents the current value.
(Inherited from OpenXmlSimpleType)
Public methodStatic memberToString(StringValue) Returns the String value representation of a StringValue object.
Top
Operators
 NameDescription
Public operatorStatic member(String to StringValue) Implicitly converts the specified String value to a StringValue object.
Public operatorStatic member(StringValue to String) Implicitly converts the specified value to a String value.
Top
See Also