本文整理汇总了C#中View.IsElementVisibleInTemporaryViewMode方法的典型用法代码示例。如果您正苦于以下问题:C# View.IsElementVisibleInTemporaryViewMode方法的具体用法?C# View.IsElementVisibleInTemporaryViewMode怎么用?C# View.IsElementVisibleInTemporaryViewMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类View
的用法示例。
在下文中一共展示了View.IsElementVisibleInTemporaryViewMode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsElementVisible
/// <summary>
/// Checks if element is visible for certain view.
/// </summary>
/// <param name="filterView">The view.</param>
/// <param name="element">The element.</param>
/// <returns>True if the element is visible, false otherwise.</returns>
public static bool IsElementVisible(View filterView, Element element)
{
bool hidden = element.IsHidden(filterView);
if (hidden)
return false;
Category category = element.Category;
hidden = CheckIsCategoryHidden(filterView, element);
if (hidden)
return false;
bool temporaryVisible = filterView.IsElementVisibleInTemporaryViewMode(TemporaryViewMode.TemporaryHideIsolate, element.Id);
return temporaryVisible;
}
示例2: IsElementVisible
/// <summary>
/// Checks if element is visible for certain view.
/// </summary>
/// <param name="filterView">The view.</param>
/// <param name="element">The element.</param>
/// <returns>True if the element is visible, false otherwise.</returns>
public static bool IsElementVisible(View filterView, Element element)
{
Document doc = element.Document;
bool hidden = element.IsHidden(filterView);
if (hidden)
return false;
Category category = element.Category;
if (category != null && category.get_AllowsVisibilityControl(filterView) && !category.get_Visible(filterView))
return false;
bool temporaryVisible = filterView.IsElementVisibleInTemporaryViewMode(TemporaryViewMode.TemporaryHideIsolate, element.Id);
return temporaryVisible;
}