本文整理匯總了C++中Collection::GetValueAt方法的典型用法代碼示例。如果您正苦於以下問題:C++ Collection::GetValueAt方法的具體用法?C++ Collection::GetValueAt怎麽用?C++ Collection::GetValueAt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Collection
的用法示例。
在下文中一共展示了Collection::GetValueAt方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: strlen
//.........這裏部分代碼省略.........
}
}
lu = new_lu;
}
expression_found = false;
prop = inptr;
break;
case '[':
// Need to be a little more loving
if (*inptr == '\0')
break;
index = strtol (inptr, &p, 10);
if (*p != ']' || *(p + 1) != '.')
break;
inptr = p + 2;
prop = inptr;
if (expression_found) {
expression_found = false;
if (!(value = lu->GetValue (res)))
goto error;
}
if (value == NULL)
goto error;
if (!(collection = value->AsCollection ()))
goto error;
if (!(value = collection->GetValueAt (index)))
goto error;
if (!(lu = value->AsDependencyObject ()))
goto error;
break;
default:
bool explicit_type = false;
expression_found = true;
start = inptr - 1;
while (inptr < inend && (*inptr != '.' || tick_open) && (!paren_open || *inptr != ')') && *inptr != '[') {
if (*inptr == '\'') {
tick_open = !tick_open;
if (!tick_open) {
inptr++;
break;
}
}
inptr++;
}
if (inptr == start)
goto error;
if (*inptr == '.') {
// we found a type name, now we need to find the property name
if ((inptr - start) == 11 && !g_ascii_strncasecmp (start, "TextElement", 11)) {
// Some Beta versions of Blend had a bug where they would save the TextBlock
// properties as TextElement instead. Since Silverlight 1.0 works around this
// bug, we should too. Fixes http://silverlight.timovil.com and