NamedView

References
public sealed class NamedView : IStorable, IComparable<NamedView>
A single named view into a document.

Constructors

NamedView

#
public NamedView(IReader reader)
reader (IReader)

NamedView

#
public NamedView(string category, string name, IEnumerable<Guid> objects)
Create a new named view based on a focus object list.
category (string)
name (string)
objects (IEnumerable<Guid>)

NamedView

#
public NamedView(string category, string name, RectangleF frame)
Create a new named view based on a focus rectangle.
category (string)View category.
name (string)View name.
frame (RectangleF)Focus frame.

Properties

Category

#
public string Category { get; }
Gets the category to which this named view belongs.

Frame

#
public RectangleF? Frame { get; }
Gets the frame of focus for this named view. If not set, the Objects array will be used.

Name

#
public string Name { get; }
Gets the name of this view.

Objects

#
public Guid[] Objects { get; }
Gets the list of objects to focus on. If null, the Frame will be used.

Methods

CompareTo

#
public int CompareTo(NamedView other)
Perform a case-insensitive category and case-sensitive name comparison.
other (NamedView)

ResolveRectangle

#
public bool ResolveRectangle(Document doc, out RectangleF rectangle)
Resolve the zoom rectangle given a specific document.
doc (Document)
rectangle (out RectangleF)

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store