Class RepositoryItemType
- Namespace
- combit.Reporting.Repository
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Provides the predefined repository item types of List & Label.
public sealed class RepositoryItemType
- Inheritance
-
RepositoryItemType
- Inherited Members
Fields
Folder
A folder.
public static readonly RepositoryItemType Folder
Field Value
Image
An image in a format like PNG, GIF, JPG.
public static readonly RepositoryItemType Image
Field Value
A PDF document.
public static readonly RepositoryItemType PDF
Field Value
PrinterConfig
A device-dependent printer config file (.lsp files)
public static readonly RepositoryItemType PrinterConfig
Field Value
ProjectCard
A List & Label project of the 'Card' type (.crd files)
public static readonly RepositoryItemType ProjectCard
Field Value
ProjectIndex
A List & Label project of the 'Index' type (.idx files)
public static readonly RepositoryItemType ProjectIndex
Field Value
ProjectLabel
A List & Label project of the 'Label' type (.lbl files)
public static readonly RepositoryItemType ProjectLabel
Field Value
ProjectList
A List & Label project of the 'List' type (.lst files)
public static readonly RepositoryItemType ProjectList
Field Value
ProjectReverseSide
A List & Label project of the 'ReverseSide' type (.gtc files)
public static readonly RepositoryItemType ProjectReverseSide
Field Value
ProjectTableOfContents
A List & Label project of the 'TableOfContents' type (.toc files)
public static readonly RepositoryItemType ProjectTableOfContents
Field Value
Shapefile
A shapefile definition (.shp).
public static readonly RepositoryItemType Shapefile
Field Value
ShapefileDatabase
A shapefile database (.dbf).
public static readonly RepositoryItemType ShapefileDatabase
Field Value
SketchImage
A small sketch image of the project layout in JPG format.
public static readonly RepositoryItemType SketchImage
Field Value
Properties
Value
The string equivalent of the item type which may be used to compare the predefined types with the actual value in Type.
public string Value { get; }
Property Value
Methods
FromLlProject(LlProject)
Returns the corresponding repository item type for the given List & Label project type.
public static RepositoryItemType FromLlProject(LlProject project)
Parameters
projectLlProjectThe List & Label project type.
Returns
Exceptions
- ArgumentException
Thrown for invalid project type values.
FromStringValue(string)
Returns the corresponding RepositoryItemType object for the given string value.
public static RepositoryItemType FromStringValue(string typeValue)
Parameters
Returns
Exceptions
- ArgumentException
Thrown if typeValue is not a valid repository item type.
IsFolder(string)
public static bool IsFolder(string typeValue)
Parameters
typeValuestring
Returns
IsProjectType(string, bool)
Returns true if the specified type is a List & Label project.
public static bool IsProjectType(string typeValue, bool allowSpecialProjectTypes = true)
Parameters
typeValuestringString value of a repository item type. See Value.
allowSpecialProjectTypesboolDecides if GTC, Index and TOC projects should be allowed or not
Returns
IsProjectType(RepositoryItemType, bool)
Returns true if the specified type is a List & Label project.
public static bool IsProjectType(RepositoryItemType typeValue, bool allowSpecialProjectTypes = true)
Parameters
typeValueRepositoryItemTypeRepository item type. See RepositoryItemType.
allowSpecialProjectTypesboolDecides if GTC, Index and TOC projects should be allowed or not
Returns
ToLlProject(string)
Returns the corresponding List & Label project type for a repository item type.
public static LlProject ToLlProject(string itemType)
Parameters
itemTypestringThe repository item type.
Returns
Exceptions
- ArgumentException
Thrown if the specified type is not a project type.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.