// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

//## Custom using statements
//##

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc4x3.UtilityResource
{
	public partial class @IfcTable : IIfcTable
	{

		[CrossSchemaAttribute(typeof(IIfcTable), 1)]
		Ifc4.MeasureResource.IfcLabel? IIfcTable.Name 
		{ 
			get
			{
				if (!Name.HasValue) return null;
				return new Ifc4.MeasureResource.IfcLabel(Name.Value);
			} 
			set
			{
				Name = value.HasValue ? 
					new MeasureResource.IfcLabel(value.Value) :  
					 new MeasureResource.IfcLabel?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcTable), 2)]
		IItemSet<IIfcTableRow> IIfcTable.Rows 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<IfcTableRow, IIfcTableRow>(Rows);
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcTable), 3)]
		IItemSet<IIfcTableColumn> IIfcTable.Columns 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<IfcTableColumn, IIfcTableColumn>(Columns);
			} 
		}
		Ifc4.MeasureResource.IfcInteger IIfcTable.NumberOfCellsInRow 
		{
			get 
			{
				return new Ifc4.MeasureResource.IfcInteger(NumberOfCellsInRow);
			}
		}

		Ifc4.MeasureResource.IfcInteger IIfcTable.NumberOfHeadings 
		{
			get 
			{
				return new Ifc4.MeasureResource.IfcInteger(NumberOfHeadings);
			}
		}

		Ifc4.MeasureResource.IfcInteger IIfcTable.NumberOfDataRows 
		{
			get 
			{
				return new Ifc4.MeasureResource.IfcInteger(NumberOfDataRows);
			}
		}

	//## Custom code
	//##
	}
}