AODL.Document.Import.OpenDocument.NodeProcessors.LocalStyleProcessor.GetProperty C# (CSharp) Метод

GetProperty() приватный Метод

Gets the property.
private GetProperty ( IStyle style, XmlNode propertyNode ) : IProperty
style IStyle The style.
propertyNode System.Xml.XmlNode The property node.
Результат IProperty
		private IProperty GetProperty(IStyle style, XmlNode propertyNode)
		{
			if (propertyNode != null && style != null)
			{
				if (propertyNode.Name == "style:table-cell-properties")
					return this.CreateCellProperties(style, propertyNode);
				else if (propertyNode.Name == "style:table-column-properties")
					return this.CreateColumnProperties(style, propertyNode);
				if (propertyNode.Name == "style:graphic-properties")
					return this.CreateGraphicProperties(style, propertyNode);
				if (propertyNode.Name == "style:paragraph-properties")
					return this.CreateParagraphProperties(style, propertyNode);
				if (propertyNode.Name == "style:table-row-properties")
					return this.CreateRowProperties(style, propertyNode);
				if (propertyNode.Name == "style:section-properties")
					return this.CreateSectionProperties(style, propertyNode);
				if (propertyNode.Name == "style:table-properties")
					return this.CreateTableProperties(style, propertyNode);
				if (propertyNode.Name == "style:text-properties")
					return this.CreateTextProperties(style, propertyNode);
				else
					return this.CreateUnknownProperties(style, propertyNode);
			}
			else
				return null;
		}