BomberEngine.Core.Assets.Types.Font.FontHeight C# (CSharp) Метод

FontHeight() публичный абстрактный Метод

public abstract FontHeight ( ) : int
Результат int
        public abstract int FontHeight();
        public abstract int LineOffset();

Usage Example

        public PopupList(Font font, String[] names, int minWidth)
        {
            RectView back = new RectView(0, 0, 100, 100, Color.Gray, Color.Black);
            AddView(back);

            View contentView = new View(100, 100);

            int w = minWidth;
            items = new ListItem[names.Length];
            for (int i = 0; i < names.Length; ++i)
            {
                ListItem item = new ListItem(font, names[i], w, font.FontHeight());
                item.id = i;
                item.buttonDelegate = OnItemSelected;
                contentView.AddView(item);
                items[i] = item;
            }

            contentView.LayoutVer(2);
            contentView.ResizeToFitViewsVer();

            AddView(contentView);

            back.width = contentView.width;
            back.height = contentView.height;

            width = contentView.width;
            height = contentView.height;
        }
All Usage Examples Of BomberEngine.Core.Assets.Types.Font::FontHeight