LoggerGetGraphLabelText


機能

YTウィンドウオプション - 全体の状態を取得します。

書式

Ret = LoggerGetGraphLabelText ( AppId , WindowNo , TargetItem , TitleEnable , TitleText )

引数

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

LoggerOpenApplicationで取得したアプリケーションIDを指定します。

WindowNo [ VB.NET: UShort ] [ C++:unsigned short ] [ C#: ushort ]

0固定となります。

TargetItem [ VB.NET: UShort ] [ C++:unsigned short ] [ C#: ushort ]

対象とするタイトルを指定します。

値

[Dec]

マクロ

内容

0

LOGGER_PARAM_AXIS_X

X軸 (T軸)

1

LOGGER_PARAM_AXIS_Y

Y軸

2

LOGGER_PARAM_TITLE_GRAPH

グラフタイトル

TitleEnable [ VB.NET: UShort ] [ C++:unsigned short * ] [ C#: out ushort ]

タイトル表示の状態を格納するアドレスを指定します。

TitleText [ VB.NET: StringBuider ] [ C++: char *] [ C#: out string ]

タイトル文字を格納するアドレスを指定します。

戻り値

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

定義

戻り値

[Dec]

内容

LOGGER_ERR_SUCCESS

0

正常終了

LOGGER_ERR_INVALID_ID

10010

無効なAppIDが指定されました。

その他のエラー(参照:エラーコード一覧)

初期値

特になし

説明

YTウィンドウオプション - 全体の状態を取得します。

詳細は、「YTウィンドウオプション - 全体」トピックを参照してください。

使用例

グラフタイトルの状態を取得します。

VB.NET

Dim Ret As Integer
Dim TitleEnable As UShort

Dim TitleText As New StringBuilder("", 256)

Ret = LoggerGetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, TitleEnable, TitleText)

 

C++

long Ret;
unsigned short TitleEnable;

char* TitleText[255];

Ret = LoggerGetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, &TitleEnable, &TitleText[0]);

 

C#

int Ret;
ushort TitleEnable;

string TitleText;

Ret = logger.GetGraphLabelText(AppId, 0, LOGGER_PARAM_TITLE_GRAPH, out TitleEnable, out TitleText);

 

関連項目

LoggerSetGraphLabelText 「YTウィンドウ」 「YTウィンドウオプション - 全体」