iTextSharp.text.pdf.PdfCell.GetBorderWidthInside C# (CSharp) Метод

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

private GetBorderWidthInside ( int side ) : float
side int
Результат float
        private float GetBorderWidthInside(int side) {
            float width = 0f;
            if (useBorderPadding) {
                switch (side) {
                    case iTextSharp.text.Rectangle.LEFT_BORDER:
                        width = BorderWidthLeft;
                        break;

                    case iTextSharp.text.Rectangle.RIGHT_BORDER:
                        width = BorderWidthRight;
                        break;

                    case iTextSharp.text.Rectangle.TOP_BORDER:
                        width = BorderWidthTop;
                        break;

                    default:    // default and BOTTOM
                        width = BorderWidthBottom;
                        break;
                }
                // non-variable (original style) borders overlap the rectangle (only 1/2 counts)
                if (!UseVariableBorders) {
                    width = width / 2f;
                }
            }
            return width;
        }