Exemplo n.º 1
0
        private void SetPositioningType(PositioningType positioningType)
        {
            string cssPositionType;

            switch (positioningType)
            {
            case PositioningType.Absolute:
                cssPositionType = "absolute";
                break;

            case PositioningType.Fixed:
                cssPositionType = "fixed";
                break;

            case PositioningType.Relative:
                cssPositionType = "relative";
                break;

            case PositioningType.Static:
                cssPositionType = "static";
                break;

            default:
                cssPositionType = "static";
                break;
            }
            InternalJQElement.Css("position", cssPositionType);
        }
Exemplo n.º 2
0
        private Point GetConstantPosition()
        {
            var left = InternalJQElement.Css <int>("left");
            var top  = InternalJQElement.Css <int>("top");

            return(new Point(left, top));
        }
Exemplo n.º 3
0
 private void SetFontStyle(FontStyle newFontStyle)
 {
     InternalJQElement.Css("font-size", newFontStyle.FontSize + "pt");
     InternalJQElement.Css("font-weight", newFontStyle.FontWeight.ToString().ToLower());
     _fontStyle = newFontStyle;
 }
Exemplo n.º 4
0
 private void SetRelativePosition(RelativePoint position)
 {
     InternalJQElement.Css("left", position.X);
     InternalJQElement.Css("top", position.Y);
 }
Exemplo n.º 5
0
 private void SetConstantPosition(Point position)
 {
     InternalJQElement.Css("left", position.X);
     InternalJQElement.Css("top", position.Y);
 }