UsageView Class

Represent a usage view in a project.
Inheritance Hierarchy
SystemObject
  Aspose.TasksView
    Aspose.TasksUsageView
      Aspose.TasksResourceUsageView
      Aspose.TasksTaskUsageView

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public abstract class UsageView : View

The UsageView type exposes the following members.

Constructors
  NameDescription
Protected methodCode exampleUsageView
Initializes a new instance of the UsageView class.
Properties
  NameDescription
Public propertyCode exampleAlignDetailsData
Gets or sets details data alignment.
Public propertyCode exampleBottomTimescaleTier
Public propertyCode exampleDisplayDetailsHeaderColumn
Gets or sets a value indicating whether to display details header column in the view or not.
Public propertyCode exampleDisplayShortDetailHeaderNames
Gets or sets a value indicating whether to display short detail header names or not.
Public propertyCode exampleFilter
Gets or sets a filter used in a single view.
(Inherited from View.)
Public propertyCode exampleGroup
Gets or sets a group of the single view.
(Inherited from View.)
Public propertyCode exampleHighlightFilter
Gets or sets a value indicating whether Microsoft Project highlights the filter for a single view.
(Inherited from View.)
Public propertyCode exampleMiddleTimescaleTier
Public propertyCode exampleName
Gets or sets the name of a View object.
(Inherited from View.)
Public propertyCode examplePageInfo
Gets an instance of the PageInfo class. Represents page setup data which is present in mpp file format.
(Inherited from View.)
Public propertyCode exampleParentProject
Gets the parent of the View object. Read-only Project.
(Inherited from View.)
Public propertyCode exampleRepeatDetailsHeaderOnAllRows
Gets or sets a value indicating whether to repeat details header on all assignment row or not.
Public propertyCode exampleScreen
Gets the screen type for the single view. Read-only ViewScreen.
(Inherited from View.)
Public propertyCode exampleShowInMenu
Gets or sets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
(Inherited from View.)
Public propertyCode exampleTable
Gets or sets a table of the single view.
(Inherited from View.)
Public propertyTimescaleSizePercentage
Public propertyCode exampleTopTimescaleTier
Public propertyCode exampleType
Gets the type of item in the single view, such as tasks or resources. Read-only ItemType.
(Inherited from View.)
Public propertyCode exampleUid
Gets the unique identifier of a view.
(Inherited from View.)
Public propertyCode exampleVisualObjectsPlacements
Gets a collection of objects representing placement and appearance of OleObject in the view.
(Inherited from View.)
Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from View.)
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Inherited from View.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode
Returns a hash code value for the instance of the Resource class.
(Inherited from View.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to render task usage view with details.
var project = new Project(DataDir + "TaskUsageViewWithDetails.mpp");

// get the view
UsageView view = (TaskUsageView)project.DefaultView;

// details header column will not be displayed
view.DisplayDetailsHeaderColumn = false;
view.RepeatDetailsHeaderOnAllRows = false;
view.DisplayShortDetailHeaderNames = false;
view.AlignDetailsData = StringAlignment.Near;
project.Save(OutDir + "task usage1_out.pdf", SaveFileFormat.PDF);

// display details header column
view.DisplayDetailsHeaderColumn = true;

// repeat details header on all assignments rows
view.RepeatDetailsHeaderOnAllRows = true;
view.AlignDetailsData = StringAlignment.Far;
project.Save(OutDir + "task usage2_out.pdf", SaveFileFormat.PDF);
See Also