33 lines
613 B
C#
33 lines
613 B
C#
![]() |
using System;
|
|||
|
using CPF.ReoGrid.Graphics;
|
|||
|
using CPF.ReoGrid.Views;
|
|||
|
|
|||
|
namespace CPF.ReoGrid.Rendering
|
|||
|
{
|
|||
|
public abstract class RDrawingContext
|
|||
|
{
|
|||
|
public Worksheet Worksheet { get; private set; }
|
|||
|
|
|||
|
public IGraphics Graphics { get; internal set; }
|
|||
|
|
|||
|
internal IRenderer Renderer
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return (IRenderer)this.Graphics;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
internal IView CurrentView { get; set; }
|
|||
|
|
|||
|
public DrawMode DrawMode { get; private set; }
|
|||
|
|
|||
|
internal RDrawingContext(Worksheet worksheet, DrawMode drawMode, IRenderer r)
|
|||
|
{
|
|||
|
this.Worksheet = worksheet;
|
|||
|
this.DrawMode = drawMode;
|
|||
|
this.Graphics = r;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|