Skip to content

CesRoundedButton

CES edited this page Jan 4, 2024 · 6 revisions

Description / توضیح

This type of button can be shown in rectangular with rounded corner or completely circular.

این کنترل می تواند بصورت چهار ضلعی و دایره نمایش داده شود.

Properties / ویژگی ها

  • CesIconAlignment : Set alignment for icon. Type of value is "ContentAlignment".
  • CesCircular : If value set to true, button change to circular mode.
  • CesTextAlignment : Set alignment for text. Type of value is "ContentAlignment".
  • CesShowIcon : Show/Hide icon in button.
  • CesShowText : Show/Hide text in button.
  • CesIcon : Select an image as icon to show in button.
  • CesColorTemplate : Value must be selected from "ColorTemplateEnum" to set predefined color for button.
  • CesFont : Set font for button text.
  • CesText : Set text for button.
  • CesForeColor : Set fore color for text.
  • CesBackColor : Set background color for button.
  • CesMouseOverColor : Set background color for button when mouse locate on button.
  • CesMouseDownColor : Set background color for button when mouse click on button.
  • CesBorderColor : Set color for border.
  • CesBorderVisible : Show/Hide border.
  • CesBorderThickness : Define thickness for border line.
  • CesBorderRadius : Set radius for corner.
  • CesIconAlignment : تعیی نموقعیت آیکن.
  • CesCircular : اگر مقدار این ویژگی برابر true باشد دکمه بصورت دایره نمایش داده خواهد شد.
  • CesTextAlignment : تعیین موقعیت متن روی دکمه.
  • CesShowIcon : امکان نمایش و یا عدم نمایش آیکن.
  • CesShowText : امکان نمایش یا دم نمای شمتن روی دکمه زمانی که آیکن برای آن انتخاب شده باشد.
  • CesIcon : انتخاب یک تصویر به عنوان آیکن.
  • CesColorTemplate : الگوی رنگ پیش فرض. ماننده کنترل CesButton امکان آن وجود دارد که کاربر از رنگ های پیش فرض استفاده کند.
  • CesFont : فونت متن دکمه.
  • CesText : متن دکمه.
  • CesForeColor : رنگ متن دکمه.
  • CesBackColor : رنگ پس زمینه دکمه.
  • CesMouseOverColor : رنگ دکمه زمانی که ماوس روی دکمه برود.
  • CesMouseDownColor : رنگ دکمه زمانی که دکمه ماوس پایین است.
  • CesBorderColor : رنگ حاشیه.
  • CesBorderVisible : امکان نمایش یا عدم نمایش حاشیه.
  • CesBorderThickness : ضخامت حاشیه.
  • CesBorderRadius : شعاع گوشه های دکمه.

ColorTemplateEnum

public enum ColorTemplateEnum
{
    None,
    Black,
    Dark,
    Gray,
    Silver,
    Light,
    Green,
    Blue,
    LightSky,
    Red,
    Tomato,
    Orange,
    Yellow,
    Gold,
    Purple,
    Olive,
}