コード例 #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);
        }
コード例 #2
0
        private Point GetConstantPosition()
        {
            var left = InternalJQElement.Css <int>("left");
            var top  = InternalJQElement.Css <int>("top");

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