Skip to main content
View as Markdown

IPainter interface

No description yet.

public interface IPainter

Namespace: SCH · Assembly: Altium.SDK.Interfaces

Properties​

PropertyTypeAccessDescription
BrushColorintget; set
CanvasHeight_Milsintget
CanvasWidth_Milsintget
ClipRectRectget; set
DoingRedrawboolget; set
PenColorintget; set
PenWidthintget; set
ViewRectRectget; set
XScaleFactordoubleget; set
YScaleFactordoubleget; set

BrushColor​

No description yet.

int GetBrushColor();
int SetBrushColor(int argColor);

Type: int · Access: read/write

The accessors are extension methods of IPainterHelper (using SCH;).

CanvasHeight_Mils​

No description yet.

int GetProperty_CanvasHeight_Mils();

Type: int · Access: read-only

CanvasWidth_Mils​

No description yet.

int GetProperty_CanvasWidth_Mils();

Type: int · Access: read-only

ClipRect​

No description yet.

Rect GetClipRect();
Rect SetClipRect(Rect argRect);

Type: Rect · Access: read/write

The accessors are extension methods of IPainterHelper (using SCH;).

DoingRedraw​

No description yet.

bool GetProperty_DoingRedraw();
void SetProperty_DoingRedraw(bool argValue);

Type: bool · Access: read/write

PenColor​

No description yet.

int GetPenColor();
int SetPenColor(int argColor);

Type: int · Access: read/write

The accessors are extension methods of IPainterHelper (using SCH;).

PenWidth​

No description yet.

int GetPenWidth();
int SetPenWidth(int argWidth);

Type: int · Access: read/write

ViewRect​

No description yet.

Rect GetViewRect();
Rect SetViewRect(Rect argRect);

Type: Rect · Access: read/write

The accessors are extension methods of IPainterHelper (using SCH;).

XScaleFactor​

No description yet.

double GetProperty_XScaleFactor();
void SetProperty_XScaleFactor(double argValue);

Type: double · Access: read/write

YScaleFactor​

No description yet.

double GetProperty_YScaleFactor();
void SetProperty_YScaleFactor(double argValue);

Type: double · Access: read/write

Methods​

MethodReturnsDescription
ClearExternalDisplayContextvoid
ClearViewRectvoid
DoCirclevoid
DoEllipsevoid
DoFillRectvoid
DoLineTovoid
DoMoveTovoid
DoPolevoid
DoTextOutvoid
DoZerovoid
DrawCursorTabvoid
DrawDesignationSymbolvoid
DrawHorizontalCursorLinevoid
DrawLinearXMinorDivisionsvoid
DrawRectvoid
DrawSelectionButtonvoid
DrawVerticalCursorLinevoid
DrawWaveScrollArrowvoid
Export_ToScreen_HighLightvoid
Export_ToScreen_Paintvoid
Export_ToScreen_Updatevoid
GetTextHeightint
GetTextWidthint
SetFontAngleint
SetFontColorint
SetFontSizeint
SetFontStyleTFontStyleSet
SetPenModeTPenMode
SetPenStyleushort
SetScalingvoid
SetupExternalDisplayContextvoid
SetWindowHandlevoid
WriteStringWithinWidthvoid

ClearExternalDisplayContext​

No description yet.

void ClearExternalDisplayContext();

Returns: nothing (void)

ClearViewRect​

No description yet.

void ClearViewRect();

Returns: nothing (void)

DoCircle​

No description yet.

void DoCircle(Point argTopLeft, int argDiameter);
void DoCircle(IPoint argTopLeft, int argDiameter);
ParameterTypePassing
argTopLeftPointvalue
argDiameterintvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

DoEllipse​

No description yet.

void DoEllipse(int argX1, int argY1, int argX2, int argY2);
ParameterTypePassing
argX1intvalue
argY1intvalue
argX2intvalue
argY2intvalue

Returns: nothing (void)

DoFillRect​

No description yet.

void DoFillRect(Rect argRect);
void DoFillRect(IRect argRect);
ParameterTypePassing
argRectRectvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

DoLineTo​

No description yet.

void DoLineTo(int argX, int argY);
ParameterTypePassing
argXintvalue
argYintvalue

Returns: nothing (void)

DoMoveTo​

No description yet.

void DoMoveTo(int argX, int argY);
ParameterTypePassing
argXintvalue
argYintvalue

Returns: nothing (void)

DoPole​

No description yet.

void DoPole(int argX1, int argY1, int argX2, int argY2);
ParameterTypePassing
argX1intvalue
argY1intvalue
argX2intvalue
argY2intvalue

Returns: nothing (void)

DoTextOut​

No description yet.

void DoTextOut(int argX, int argY, string argString);
ParameterTypePassing
argXintvalue
argYintvalue
argStringstringvalue

Returns: nothing (void)

DoZero​

No description yet.

void DoZero(int argX1, int argY1, int argX2, int argY2);
ParameterTypePassing
argX1intvalue
argY1intvalue
argX2intvalue
argY2intvalue

Returns: nothing (void)

DrawCursorTab​

No description yet.

void DrawCursorTab(int argX, int argY, char argLabelChar);
ParameterTypePassing
argXintvalue
argYintvalue
argLabelCharcharvalue

Returns: nothing (void)

DrawDesignationSymbol​

No description yet.

void DrawDesignationSymbol(int argnX, int argY, int argWaveIndex);
ParameterTypePassing
argnXintvalue
argYintvalue
argWaveIndexintvalue

Returns: nothing (void)

DrawHorizontalCursorLine​

No description yet.

void DrawHorizontalCursorLine(int argnX1, int argnX2, int argY, int argYMin, int argYMax);
ParameterTypePassing
argnX1intvalue
argnX2intvalue
argYintvalue
argYMinintvalue
argYMaxintvalue

Returns: nothing (void)

DrawLinearXMinorDivisions​

No description yet.

void DrawLinearXMinorDivisions(int argnX, int argTop, int argBottom, int argDivWidth);
ParameterTypePassing
argnXintvalue
argTopintvalue
argBottomintvalue
argDivWidthintvalue

Returns: nothing (void)

DrawRect​

No description yet.

void DrawRect(Rect argRect, ushort argPenStyle);
void DrawRect(IRect argRect, ushort argPenStyle);
ParameterTypePassing
argRectRectvalue
argPenStyleushortvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

DrawSelectionButton​

No description yet.

void DrawSelectionButton(Rect argRect, bool argSelected);
void DrawSelectionButton(IRect argRect, bool argSelected);
ParameterTypePassing
argRectRectvalue
argSelectedboolvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

DrawVerticalCursorLine​

No description yet.

void DrawVerticalCursorLine(int argY1, int argY2, int argnX);
ParameterTypePassing
argY1intvalue
argY2intvalue
argnXintvalue

Returns: nothing (void)

DrawWaveScrollArrow​

No description yet.

void DrawWaveScrollArrow(Rect argR, TScrollArrowDirection argDir, bool argHiLight);
void DrawWaveScrollArrow(IRect argR, int argDir, bool argHiLight);
ParameterTypePassing
argRRectvalue
argDirTScrollArrowDirectionvalue
argHiLightboolvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

Export_ToScreen_HighLight​

No description yet.

void Export_ToScreen_HighLight(IPrimitive argPrimitive, bool argHide);
void Export_ToScreen_HighLight(object argPrimitive, bool argHide);
ParameterTypePassing
argPrimitiveIPrimitivevalue
argHideboolvalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

Export_ToScreen_Paint​

No description yet.

void Export_ToScreen_Paint(IPrimitive argPrimitive);
void Export_ToScreen_Paint(object argPrimitive);
ParameterTypePassing
argPrimitiveIPrimitivevalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

Export_ToScreen_Update​

No description yet.

void Export_ToScreen_Update(IPrimitive argPrimitive, double argNewXPlotValue);
void Export_ToScreen_Update(object argPrimitive, double argNewXPlotValue);
ParameterTypePassing
argPrimitiveIPrimitivevalue
argNewXPlotValuedoublevalue

Returns: nothing (void)

The first overload is an extension method of IPainterHelper (using SCH;) with typed parameters; the second is declared by the interface.

GetTextHeight​

No description yet.

int GetTextHeight(string argString);
ParameterTypePassing
argStringstringvalue

Returns: int

GetTextWidth​

No description yet.

int GetTextWidth(string argString);
ParameterTypePassing
argStringstringvalue

Returns: int

SetFontAngle​

No description yet.

int SetFontAngle(int argngle_Degrees);
ParameterTypePassing
argngle_Degreesintvalue

Returns: int

SetFontColor​

No description yet.

int SetFontColor(int argColor);
ParameterTypePassing
argColorintvalue

Returns: int

Extension method of IPainterHelper (using SCH;).

SetFontSize​

No description yet.

int SetFontSize(int argSize);
ParameterTypePassing
argSizeintvalue

Returns: int

SetFontStyle​

No description yet.

TFontStyleSet SetFontStyle(TFontStyleSet argStyle);
ParameterTypePassing
argStyleTFontStyleSetvalue

Returns: TFontStyleSet

Extension method of IPainterHelper (using SCH;).

SetPenMode​

No description yet.

TPenMode SetPenMode(TPenMode argMode);
ParameterTypePassing
argModeTPenModevalue

Returns: TPenMode

Extension method of IPainterHelper (using SCH;).

SetPenStyle​

No description yet.

ushort SetPenStyle(ushort argStyle);
ParameterTypePassing
argStyleushortvalue

Returns: ushort

SetScaling​

No description yet.

void SetScaling();

Returns: nothing (void)

SetupExternalDisplayContext​

No description yet.

void SetupExternalDisplayContext(uint argDC);
ParameterTypePassing
argDCuintvalue

Returns: nothing (void)

SetWindowHandle​

No description yet.

void SetWindowHandle(uint argHandle);
ParameterTypePassing
argHandleuintvalue

Returns: nothing (void)

WriteStringWithinWidth​

No description yet.

void WriteStringWithinWidth(string argString, int argnX, int argY, int argMaxWidth);
ParameterTypePassing
argStringstringvalue
argnXintvalue
argYintvalue
argMaxWidthintvalue

Returns: nothing (void)

Returned by​

IChart.Painter, ISDFGraphicalView.Painter

Accepted by​

IChart.GetClipRect