AODL.Document.Styles.MasterStyles.TextPageLayout.GetContentWidth C# (CSharp) Method

GetContentWidth() public method

Gets the width of the content.
Will return 0 if the width couldn't be calculated.
public GetContentWidth ( ) : double
return double
		public double GetContentWidth()
		{
			try
			{
				if (this.PageWidth != null 
					&& SizeConverter.GetDoubleFromAnOfficeSizeValue(this.PageWidth) > 0)
				{
					return SizeConverter.GetDoubleFromAnOfficeSizeValue(this.PageWidth)
						- SizeConverter.GetDoubleFromAnOfficeSizeValue(this.MarginLeft)
						- SizeConverter.GetDoubleFromAnOfficeSizeValue(this.MarginRight);
				}
				return 0;
			}
			catch(Exception)
			{
				throw;
			}
		}