C# Класс SobekCM.Resource_Object.Divisions.Division_Tree

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
preorder_build void
recursively_add_file bool
recursively_build_all_files_list void
recursively_check_for_any_files bool

Открытые методы

Метод Описание
Add_File ( string FileName ) : SobekCM_File_Info

Adds a file (with the appropriate divisions and pages) to this tree by filename

This is generally used to add just a single file. To add many files, better logic should be implemented

Add_File ( string FileName, string Label ) : SobekCM_File_Info

Adds a file (with the appropriate divisions and pages) to this tree by filename

This is generally used to add just a single file. To add many files, better logic should be implemented

Add_File ( SobekCM_File_Info New_File ) : void

Adds a file object (with the appropriate divisions and pages) to this tree

This is generally used to add just a single file. To add many files, better logic should be implemented

Add_File ( SobekCM_File_Info New_File, string Label ) : void

Adds a file object (with the appropriate divisions and pages) to this tree

This is generally used to add just a single file. To add many files, better logic should be implemented

Clear ( ) : void

Clears this tree completely

Division_Tree ( ) : System

Constructor creates a new instance of the Division_Tree class

Page_Sequence_By_FileName ( string FileName ) : int

Returns the page sequence for the indicated file name

Приватные методы

Метод Описание
preorder_build ( List Collection, SobekCM.Resource_Object.Divisions.abstract_TreeNode ThisNode, bool OnlyAddPages, bool PagesMustHaveFiles ) : void
recursively_add_file ( SobekCM.Resource_Object.Divisions.abstract_TreeNode Node, SobekCM_File_Info New_File, string SystemName_Upper ) : bool
recursively_build_all_files_list ( List ReturnValue, List HandledPages, SobekCM.Resource_Object.Divisions.abstract_TreeNode ThisNode ) : void
recursively_check_for_any_files ( SobekCM.Resource_Object.Divisions.abstract_TreeNode Node ) : bool

Описание методов

Add_File() публичный Метод

Adds a file (with the appropriate divisions and pages) to this tree by filename
This is generally used to add just a single file. To add many files, better logic should be implemented
public Add_File ( string FileName ) : SobekCM_File_Info
FileName string Name of the file to add
Результат SobekCM_File_Info

Add_File() публичный Метод

Adds a file (with the appropriate divisions and pages) to this tree by filename
This is generally used to add just a single file. To add many files, better logic should be implemented
public Add_File ( string FileName, string Label ) : SobekCM_File_Info
FileName string Name of the file to add
Label string Label for the page containing this file, if it is a new page
Результат SobekCM_File_Info

Add_File() публичный Метод

Adds a file object (with the appropriate divisions and pages) to this tree
This is generally used to add just a single file. To add many files, better logic should be implemented
public Add_File ( SobekCM_File_Info New_File ) : void
New_File SobekCM_File_Info New file object to add
Результат void

Add_File() публичный Метод

Adds a file object (with the appropriate divisions and pages) to this tree
This is generally used to add just a single file. To add many files, better logic should be implemented
public Add_File ( SobekCM_File_Info New_File, string Label ) : void
New_File SobekCM_File_Info New file object to add
Label string Label for the page containing this file, if it is a new page
Результат void

Clear() публичный Метод

Clears this tree completely
public Clear ( ) : void
Результат void

Division_Tree() публичный Метод

Constructor creates a new instance of the Division_Tree class
public Division_Tree ( ) : System
Результат System

Page_Sequence_By_FileName() публичный Метод

Returns the page sequence for the indicated file name
public Page_Sequence_By_FileName ( string FileName ) : int
FileName string Name of the file to check for similar existence
Результат int