/// <summary> /// Draws the background of a selected rectangle. /// </summary> /// <param name="rect">The rectangle to draw.</param> /// <param name="selectionStyle">The style to use when drawing.</param> public virtual void DrawSelectionRectangle(Rect rect, SelectionStyles selectionStyle) { Debug.Assert(WpfDrawingContext != null); Debug.Assert(RegionHelper.IsFixed(rect)); Pen RectanglePen; switch (selectionStyle) { default: RectanglePen = GetPen(PenSettings.Default); break; case SelectionStyles.Node: RectanglePen = GetPen(PenSettings.SelectionNode); break; case SelectionStyles.NodeList: RectanglePen = GetPen(PenSettings.SelectionNodeList); break; case SelectionStyles.BlockList: RectanglePen = GetPen(PenSettings.SelectionBlockList); break; } WpfDrawingContext.DrawRectangle(GetBrush(BrushSettings.Selection), RectanglePen, new System.Windows.Rect(PagePadding.Left.Draw + rect.X, PagePadding.Top.Draw + rect.Y, rect.Width, rect.Height)); }
public static void Set_SelectionStyle(this FarPoint.ViewModels.SheetViewModel _SheetView, SelectionStyles SelectionStyle) { throw new NotImplementedException("This is an automatic generated code, please implement the requested logic."); }
public void DrawSelectionRectangle(Rect rect, SelectionStyles selectionStyle) { }
/// <summary> /// Draws a selection rectangle around cells. /// </summary> /// <param name="startIndex">Index of the first cell in the selection.</param> /// <param name="endIndex">Index of the last cell in the selection.</param> /// <param name="selectionStyle">The style to use when drawing.</param> public abstract void DrawSelection(int startIndex, int endIndex, SelectionStyles selectionStyle);
public void SetSelectionStyle(SelectionStyles style, Color lineColor, Color fillColor, int lineWidth = 1) { LineColor = lineColor; FillColor = fillColor; _selectionStyle = style; }
void ISelectionUIService.SetSelectionStyle(object component, SelectionStyles style) { SelectionUIItem item = (SelectionUIItem) this.selectionItems[component]; if ((this.selSvc != null) && this.selSvc.GetComponentSelected(component)) { item = new SelectionUIItem(this, component); this.selectionItems[component] = item; } if (item != null) { item.Style = style; this.UpdateWindowRegion(); item.Invalidate(); } }
public SelectionUIItem(SelectionUIService selUIsvc, object component) { this.selUIsvc = selUIsvc; this.component = component; this.selectionStyle = SelectionStyles.Selected; this.handler = selUIsvc.GetHandler(component); this.sizes = inactiveSizeArray; this.cursors = inactiveCursorArray; IComponent component2 = component as IComponent; if (component2 != null) { ControlDesigner designer = selUIsvc.host.GetDesigner(component2) as ControlDesigner; if (designer != null) { this.control = designer.Control; } } this.UpdateRules(); this.UpdateGrabSettings(); this.UpdateSize(); }