본문으로 건너뛰기

AddText

Overloads

NameDescription
AddText(string text, FontSizeKind size, Color color, float degreeX, float degreeY)Add Text

AddText(string text, FontSizeKind size, Color color, float degreeX, float degreeY)

public int AddText(string text, FontSizeKind size, Color color, float degreeX, float degreeY)

Add Text

Parameters

NameTypeDescription
textstring텍스트
sizeFontSizeKind텍스트 크기
colorColor색상
degreeXfloatAngle X (Degree)
degreeYfloatAngle Y (Degree)

Returns

TypeDescription
int등록된 개체 ID

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example1()
{
vizcore3d.BeginUpdate();
for (int i = 0; i < 360; i += 10)
{
float fAngleX = i;
float fAngleY = 2.0f;

string text = string.Format("{0}", i);

Color color = Color.FromArgb(255, 0, 255, 0);
vizcore3d.Panorama.CustomObject.AddText(text, Data.FontSizeKind.SIZE12, color, fAngleX, fAngleY);
}
vizcore3d.EndUpdate();
}

private void Example2()
{
vizcore3d.BeginUpdate();
for (int i = -80; i < 80; i += 10)
{
float fAngleX = 2.0f;
float fAngleY = i;

string text = string.Format("{0}", i);

Color color = Color.FromArgb(255, 0, 0, 255);
vizcore3d.Panorama.CustomObject.AddText(text, Data.FontSizeKind.SIZE12, color, fAngleX, fAngleY);
}
vizcore3d.EndUpdate();
}