bool Pinned { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Pinned property of the Project class indicates whether the project is marked as pinned. When a project is pinned, it is given priority during sorting operations, making it easier to locate among other projects.

Usage

To check if a project is pinned, access the Pinned property on an instance of the Project class. This property returns a bool value, where true indicates that the project is pinned, and false indicates it is not.

Example

// Example of checking if a project is pinned
Project myProject = Sandbox.Project.Current;

if (myProject.Pinned)
{
    // Perform actions for pinned projects
    Console.WriteLine("This project is pinned.");
}
else
{
    // Perform actions for non-pinned projects
    Console.WriteLine("This project is not pinned.");
}