AODL.Document.SpreadsheetDocuments.SpreadsheetDocument.CreateAttribute C# (CSharp) Метод

CreateAttribute() публичный Метод

Create a new XmlAttribute for this document.
public CreateAttribute ( string name, string prefix ) : XmlAttribute
name string The attributename.
prefix string The prefixname.
Результат System.Xml.XmlAttribute
		public XmlAttribute CreateAttribute(string name, string prefix)
		{
			if (this.XmlDoc == null)
				throw new NullReferenceException("There is no XmlDocument loaded. Couldn't create Attribue "+name+" with Prefix "+prefix+". "+this.GetType().ToString());
			string nuri = this.GetNamespaceUri(prefix);
			return this.XmlDoc.CreateAttribute(prefix, name, nuri);
		}