/// <summary> /// Calculates the Width of an AMenuComponent /// </summary> /// <returns> /// The width. /// </returns> public override int Width() { return (int) (BlueUtilities.MeasureString(MultiLanguage.Translation(this.Component.DisplayName) + " \u25B6").Width + (MenuSettings.ContainerTextOffset * 2) + MenuSettings.ContainerTextMarkWidth); }
/// <summary> /// Calculates the Width of an AMenuComponent /// </summary> /// <returns> /// The width. /// </returns> public override int Width() { return ((int) (BlueUtilities.MeasureString(this.Component.DisplayName + " \u25B6").Width + (MenuSettings.ContainerTextOffset * 2) + MenuSettings.ContainerTextMarkWidth)); }