MigraDoc.DocumentObjectModel.Internals.ValueDescriptor.SetNull C# (CSharp) 메소드

SetNull() 공개 추상적인 메소드

public abstract SetNull ( DocumentObject dom ) : void
dom DocumentObject
리턴 void
    public abstract void SetNull(DocumentObject dom);
    public abstract bool IsNull(DocumentObject dom);

Usage Example

예제 #1
0
        /// <summary>
        /// Sets the member of dom specified by name to null.
        /// If a member with the specified name does not exist an ArgumentException will be thrown.
        /// </summary>
        public void SetNull(DocumentObject dom, string name)
        {
            ValueDescriptor vd = _vds[name];

            if (vd == null)
            {
                throw new ArgumentException(DomSR.InvalidValueName(name));
            }

            vd.SetNull(dom);
        }