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); }
private Point GetConstantPosition() { var left = InternalJQElement.Css <int>("left"); var top = InternalJQElement.Css <int>("top"); return(new Point(left, top)); }
private void SetFontStyle(FontStyle newFontStyle) { InternalJQElement.Css("font-size", newFontStyle.FontSize + "pt"); InternalJQElement.Css("font-weight", newFontStyle.FontWeight.ToString().ToLower()); _fontStyle = newFontStyle; }
private void SetRelativePosition(RelativePoint position) { InternalJQElement.Css("left", position.X); InternalJQElement.Css("top", position.Y); }
private void SetConstantPosition(Point position) { InternalJQElement.Css("left", position.X); InternalJQElement.Css("top", position.Y); }