本文整理匯總了C#中System.Windows.Forms.TreeNode.UpdateImage方法的典型用法代碼示例。如果您正苦於以下問題:C# TreeNode.UpdateImage方法的具體用法?C# TreeNode.UpdateImage怎麽用?C# TreeNode.UpdateImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.TreeNode
的用法示例。
在下文中一共展示了TreeNode.UpdateImage方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UpdateImagesRecursive
private void UpdateImagesRecursive ( TreeNode node )
{
node.UpdateImage();
// VSWhidbey 208200: Iterate only through the Nodes collection rather than the
// array since an item might have been removed from the collection, and
// correspondingly "removed" from the array, but still exist in the array
// since the array isn't actually re-dimensioned down to a smaller size.
foreach (TreeNode child in node.Nodes) {
UpdateImagesRecursive(child);
}
}
示例2: UpdateImagesRecursive
private void UpdateImagesRecursive(TreeNode node)
{
node.UpdateImage();
foreach (TreeNode node2 in node.Nodes)
{
this.UpdateImagesRecursive(node2);
}
}