本文整理汇总了C#中IFigure.Invalidate方法的典型用法代码示例。如果您正苦于以下问题:C# IFigure.Invalidate方法的具体用法?C# IFigure.Invalidate怎么用?C# IFigure.Invalidate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFigure
的用法示例。
在下文中一共展示了IFigure.Invalidate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveFromSelection
public void RemoveFromSelection (IFigure figure) {
_selection.Remove (figure);
figure.Invalidate ();
}
示例2: AddToSelection
public void AddToSelection (IFigure figure) {
if (!IsFigureSelected (figure) && Drawing.Includes (figure)) {
_selection.Add (figure);
figure.Invalidate ();
}
}
示例3: BringToFront
public void BringToFront (IFigure figure) {
if (Includes (figure)) {
Figures.Remove (figure);
Figures.Add (figure);
figure.Invalidate ();
}
}
示例4: SendToBack
public void SendToBack (IFigure figure) {
if (Includes (figure)) {
Figures.Remove (figure);
Figures.Insert (0, figure);
figure.Invalidate ();
}
}
示例5: Remove
public virtual void Remove (IFigure figure) {
if (!Figures.Contains (figure)) {
return;
}
Figures.Remove (figure);
figure.FigureInvalidated -= FigureInvalidatedHandler;
figure.Invalidate ();
}
示例6: Add
public virtual void Add (IFigure figure) {
if (Figures.Contains (figure)) {
return;
}
Figures.Add (figure);
figure.FigureInvalidated += FigureInvalidatedHandler;
figure.Invalidate ();
}