iTextSharp.text.pdf.CMapAwareDocumentFont.ComputeAverageWidth C# (CSharp) Метод

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

private ComputeAverageWidth ( ) : int
Результат int
        private int ComputeAverageWidth()
        {
            int count = 0;
            int total = 0;
            for (int i = 0; i < base.widths.Length; i++){
                if (base.widths[i] != 0){
                    total += base.widths[i];
                    count++;
                }
            }
            return count != 0 ? total/count : 0;
        }