/// <summary> /// 新しいインスタンスを初期化します。 /// </summary> /// <param name="location"></param> /// <param name="itemSize"></param> public Menu(Point location, Size itemSize, Position basePoint, int margin, DxSharp.Data.Font font, ButtonStyle normalStyle = null, ButtonStyle hoverStyle = null, ButtonStyle activeStyle = null) { Location = location; ItemSize = itemSize; Size = new Size(itemSize.Width, 0); BasePoint = basePoint; Margin = margin; Font = font; NormalStyle = normalStyle; HoverStyle = hoverStyle; ActiveStyle = activeStyle; }
/// <summary> /// 新しいインスタンスを初期化します /// </summary> public ButtonStyle(Color frameColor, Color backColor, Color textColor, DxSharp.Data.Image backImage = null) { FrameColor = frameColor; BackColor = backColor; BackImage = backImage; TextColor = textColor; }