Exemplo n.º 1
0
 public BrowserTitle(string title, string fontSize, string fontFamily, bool bold, string width, string height, string fontColor, BrowserTextAlign textAlign)
     : base(BrowserElementType.Title)
 {
     this.Title      = title;
     this.FontSize   = fontSize;
     this.Bold       = bold;
     this.FontFamily = fontFamily;
     this.FontColor  = fontColor;
     this.TextAlign  = textAlign;
 }
Exemplo n.º 2
0
 public BrowserCheckBox(string text, bool isChecked, string fontSize, string fontFamily, bool bold, string width, string height, string color, BrowserTextAlign textAlign, BrowserElementAnimationType animationType = BrowserElementAnimationType.None)
     : base(BrowserElementType.Checkbox)
 {
     this.Text       = text;
     this.IsChecked  = isChecked;
     this.FontSize   = fontSize;
     this.FontFamily = FontFamily;
     this.Bold       = bold;
     this.Width      = width;
     this.Height     = height;
     this.TextAlign  = textAlign;
     this.FontColor  = color;
     this.FontFamily = fontFamily;
 }
Exemplo n.º 3
0
 public BrowserTextBox(string placeHolder, string text, string labelText, bool readOnly, BrowserElementType elementType = BrowserElementType.TextBox)
     : base(elementType)
 {
     this.PlaceHolder = placeHolder;
     this.Label       = new BrowserText(labelText, BrowserTextAlign.center);
     this.Text        = text;
     this.ReadOnly    = readOnly;
     this.Bold        = false;
     this.MaxLength   = 50;
     //this.Width = "120px";
     //this.Height = "30px";
     this.Cursor     = "pointer";
     this.TextAlign  = BrowserTextAlign.center;
     this.ReadOnly   = readOnly;
     this.Width      = "150px";
     this.Height     = "25px";
     this.FontColor  = "black";
     this.FontFamily = "Verdana";
     this.Bold       = false;
     this.FontSize   = "12px";
     this.Margin     = "0 0 0 0";
     this.Padding    = "0 0 0 0";
 }
Exemplo n.º 4
0
        public string GetTextAlignByPosition(BrowserTextAlign position)
        {
            Stylesheet block = new Stylesheet("display", "block");

            string alignValue = "center";

            switch (position)
            {
            case BrowserTextAlign.center:
                alignValue = "center";
                break;

            case BrowserTextAlign.left:
                alignValue = "left";
                break;

            case BrowserTextAlign.right:
                alignValue = "right";
                break;
            }
            Stylesheet textAlign = new Stylesheet("text-align", alignValue);

            return(block + " " + textAlign);
        }
Exemplo n.º 5
0
 public BrowserText(string text, BrowserTextAlign textAlign)
     : base(BrowserElementType.Text)
 {
     this.Text      = text;
     this.TextAlign = textAlign;
 }
Exemplo n.º 6
0
 public BrowserTitle(string title, BrowserTextAlign textAlign)
     : base(BrowserElementType.Title)
 {
     this.Title     = title;
     this.TextAlign = textAlign;
 }