combit List & Label 25 - .NET Online Web Help
GetFileExtension Method
Example 


combit.ListLabel25 Namespace > FileExtensions Class : GetFileExtension Method
Project type (List, Label or Card) the file extension is to be queried for.
Type of the project file.
For determining the file extension of a given project type.
Syntax
'Declaration
 
Public Function GetFileExtension( _
   ByVal projectType As LlProject, _
   ByVal fileType As LlFileType _
) As String
public string GetFileExtension( 
   LlProject projectType,
   LlFileType fileType
)
public:
String^ GetFileExtension( 
   LlProject projectType,
   LlFileType fileType
) 

Parameters

projectType
Project type (List, Label or Card) the file extension is to be queried for.
fileType
Type of the project file.

Return Value

Returns the queried file extension (without point) as string; e.g. "lst".
Exceptions
ExceptionDescription
If an unsupported type of LLProject or another LlFileType is queried.
 
Example
Below List & Label is queried which file extension and PrinterSettings are defined for list projects.
// ask LL for file extension of list projects
string listProjectFileExtension = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.Project);
string listPrinterSettingsFileExtension = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.PrinterSettings);
' ask LL for file extension of list projects
Dim listProjectFileExtension As String = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.Project)
Dim listPrinterSettingsFileExtension As String = LL.FileExtensions.GetFileExtension(LlProject.List, LlFileType.PrinterSettings)
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

FileExtensions Class
FileExtensions Members