Class ValueDescriptor
- Namespace
- MigraDoc.DocumentObjectModel.Internals
- Assembly
- MigraDoc.DocumentObjectModel.dll
Base class of all value descriptor classes.
public abstract class ValueDescriptor
- Inheritance
-
objectValueDescriptor
Fields
- PropertyInfo
The property information of the described value.
- ValueName
The name of the value.
- ValueType
The type of the described value, e.g. typeof(Int32) for an int?.
Properties
- IsReadOnly
Gets a value indicating whether the value must not be set using SetValue.
- IsRefOnly
Gets a value indicating whether the value is 'reference only'. A 'reference only' value does not contribute to the state of the object that contains it, i.e. it does not e.g. taken into account on a IsNull check of the document object.
Methods
- CreateValue()
Creates the value this descriptor describes.
- EnsureCanWrite()
Ensures the value can be written.
- EnsureGetValueFlags(GV)
Ensures the get value flags are defined in the enum type.
- GetValue(DocumentObject, GV)
Gets the value from document object as nullable object.
- IsNull(DocumentObject)
Determines whether the specified value from the document object is null.
- SetNull(DocumentObject)
Sets the value in the document object to null.
- SetValue(DocumentObject, object?)
Sets the value in the document object.