Share via


StringValue Class

Definition

Represents the string value for attributes.

public class StringValue : DocumentFormat.OpenXml.OpenXmlComparableSimpleReference<string>
public class StringValue : DocumentFormat.OpenXml.OpenXmlSimpleType
type StringValue = class
    inherit OpenXmlComparableSimpleReference<string>
type StringValue = class
    inherit OpenXmlSimpleType
Public Class StringValue
Inherits OpenXmlComparableSimpleReference(Of String)
Public Class StringValue
Inherits OpenXmlSimpleType
Inheritance
Inheritance
Derived

Constructors

StringValue()

Initializes a new instance of the StringValue class.

StringValue(String)

Initializes a new instance of the StringValue class using the supplied string.

StringValue(StringValue)

Initializes a new instance of the StringValue class by deep copying the supplied StringValue class.

Properties

HasValue

Gets a value indicating whether the underneath text value is a valid value.

(Inherited from OpenXmlSimpleType)
InnerText

Gets or sets the inner XML text.

(Inherited from OpenXmlSimpleType)
TextValue
Obsolete.

Gets or sets the internal raw text value. DO NOT use this property. Only for OpenXmlSimpleType.cs internal use.

(Inherited from OpenXmlSimpleType)
Value

Gets or sets the string value.

Methods

Clone()

Creates a duplicate of the current value.

(Inherited from OpenXmlSimpleType)
CompareTo(Object) (Inherited from OpenXmlComparableSimpleReference<T>)
CompareTo(OpenXmlComparableSimpleReference<T>) (Inherited from OpenXmlComparableSimpleReference<T>)
Equals(Object) (Inherited from OpenXmlComparableSimpleReference<T>)
Equals(OpenXmlComparableSimpleReference<T>) (Inherited from OpenXmlComparableSimpleReference<T>)
FromString(String)

Returns a new StringValue object that was created from a String value.

GetHashCode() (Inherited from OpenXmlComparableSimpleReference<T>)
ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)
ToString(StringValue)

Returns the String value representation of a StringValue object.

Operators

Implicit(String to StringValue)

Implicitly converts the specified String value to a StringValue object.

Implicit(StringValue to String)

Implicitly converts the specified value to a String value.

Applies to