【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.6.3 DataObject::GetCustomEscapedString
Contents
Description
Get the short description name of DataRange For Origin version 2018 or later.
Syntax
BOOL GetCustomEscapedString(string& str, LPCSTR lpcszCustom)
Parameters
- str
- [output] string with the short description name.
- lpcszCustom
- [input] force particular legend format, in the form of @LL, @LC etc.
Return
TRUE on success and FALSE if lpcszCustomis specified but is not in the valid format.
Examples
EX1
void DataObject_GetCustomEscapedString_Ex1() { Worksheet wks = Project.ActiveLayer(); XYRange dr; dr.Add(wks, 0, "X"); dr.Add(wks, 1, "Y"); Column colY; dr.GetYColumn(colY); string str1, str2; colY.GetCustomEscapedString(str2, "@U"); /// Longname & Unit }
Remark
See Also
Header to Include
origin.h