public SheetPaperSizeInfo(SheetPaperSize paperSize) { PaperSize = paperSize; Width = 0; Height = 0; Name = paperSize.ToString(); Description = String.Empty; FieldInfo field = typeof(SheetPaperSize).GetField(paperSize.ToString()); if (field != null) { SheetPaperSizeAttribute attribute = field.GetSheetPaperSizeAttribute(); if (attribute != null) { Description = attribute.Description; Width = attribute.Width; Height = attribute.Height; } } }