/// <inheritdoc cref="ViewCollectionHelper.RemoveAllViews"/> public void RemoveAllViews() { ViewCollectionHelper.RemoveAllViews(out _views, out _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.UpdateViewValueById"/> public void UpdateViewValueById(string id, string value) { ViewCollectionHelper.UpdateViewValueById(id, value, ref _views, ref _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.RemoveViewsAfterId"/> public void RemoveViewsAfterId(string viewId) { ViewCollectionHelper.RemoveViewsAfterId(viewId, ref _views, ref _viewIds); }
/// <summary> /// Get the view with a specific ID from a collection cast as the target type /// </summary> /// <param name="viewId">The ID of the view to get</param> /// <returns> /// The view with the specified ID cast as the target type. /// </returns> /// <exception cref="ArgumentNullException">An invalid view ID was entered</exception> /// <exception cref="ArgumentException">No views are on the page to get</exception> /// <exception cref="IndexOutOfRangeException">The ID was found, but the view was not. The page is probably malformed and should be recreated.</exception> /// <exception cref="KeyNotFoundException">No views with that ID were found</exception> public TViewType GetViewById <TViewType>(string viewId) where TViewType : AbstractView { return(ViewCollectionHelper.GetViewById <TViewType>(viewId, ref _views, ref _viewIds)); }
/// <inheritdoc cref="ViewCollectionHelper.UpdateViewById"/> public void UpdateViewById(AbstractView view) { ViewCollectionHelper.UpdateViewById(view, ref _views, ref _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.ContainsViewWithId"/> public bool ContainsViewWithId(string viewId) { return(ViewCollectionHelper.ContainsViewWithId(viewId, ref _views, ref _viewIds)); }
/// <summary> /// Get the view on the page with the given ID /// </summary> /// <param name="viewId">The ID of the view to get</param> /// <returns> /// The view with the specified ID as an <see cref="AbstractView"/>. /// This should be cast to the appropriate view type before use. /// </returns> /// <exception cref="ArgumentNullException">An invalid view ID was entered</exception> /// <exception cref="ArgumentException">No views are on the page to get</exception> /// <exception cref="IndexOutOfRangeException">The ID was found, but the view was not. The page is probably malformed and should be recreated.</exception> /// <exception cref="KeyNotFoundException">No views with that ID were found</exception> public AbstractView GetViewById(string viewId) { return(ViewCollectionHelper.GetViewById(viewId, ref _views, ref _viewIds)); }
/// <inheritdoc cref="ViewCollectionHelper.SetViews"/> /// <summary> /// Set the list of views on this page /// </summary> public void SetViews(IEnumerable <AbstractView> views) { ViewCollectionHelper.SetViews(views, ref _views, ref _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.AddView"/> /// <summary> /// Add a view to the page /// </summary> public void AddView(AbstractView view) { ViewCollectionHelper.AddView(view, ref _views, ref _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.MapViewIds"/> private void MapViewIds() { ViewCollectionHelper.MapViewIds(_views, out _viewIds); }
/// <inheritdoc cref="ViewCollectionHelper.AddViews"/> /// <summary> /// Add multiple views to the group /// </summary> public void AddViews(IEnumerable <AbstractView> views) { ViewCollectionHelper.AddViews(views, ref _views, ref _viewIds, true); }
/// <inheritdoc cref="ViewCollectionHelper.MapViewIds"/> internal void MapViewIds() { ViewCollectionHelper.MapViewIds(_views, out _viewIds, true); }