/// <summary>Gets the level of details, i.e. the value of the optional property 'Level of Details'. /// </summary> /// <param name="generalPropertyExcelDataQuery">A <see cref="IExcelDataQuery"/> object that contains general properties.</param> /// <param name="propertyValueColumnIndex">The null-based index of the column which contains the value, the second column is standard.</param> /// <returns>A value indicating the level of detail for the output, i.e. for the Pool inspector etc.</returns> public static InfoOutputDetailLevel GetLevelOfDetails(this IExcelDataQuery generalPropertyExcelDataQuery, int propertyValueColumnIndex = 1) { if (generalPropertyExcelDataQuery == null) { throw new ArgumentNullException("generalPropertyExcelDataQuery"); } InfoOutputDetailLevel levelOfDetails = InfoOutputDetailLevel.Full; generalPropertyExcelDataQuery.TryGetOptionalPropertyValue <InfoOutputDetailLevel>("Level of Details", ref levelOfDetails, EnumStringRepresentationUsage.StringAttribute, propertyValueColumnIndex); return(levelOfDetails); }