C# 클래스 SIL.FieldWorks.Common.Controls.LabelNode

This override to TreeNode handles the displaying of an ObjectLabel in a custom way
상속: System.Windows.Forms.TreeNode
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_stylesheet IVwStylesheet

공개 메소드들

메소드 설명
AddChildren ( bool recursively, IEnumerable chosenObjs ) : void

Add the children nodes of a particular node in the tree. Do this recursively if that parameter is set to true. Also set the node as Checked if is it in the set or chosenObjs.

AddChildrenAndLookForSelected ( ICmObject objToSelect, Stack ownershipStack, IEnumerable chosenObjs ) : LabelNode

Add the children nodes of a particular node in the tree. While adding nodes if a match is found for objToSelect then nodeRepresentingCurrentChoice assigned to it and is returned. Otherwise if no node in the tree matches objToSelect this method returns null.

AddSecondaryNodes ( LabelNode node, TreeNodeCollection nodes, IEnumerable chosenObjs ) : void

Adds the secondary nodes.

AddSecondaryNodesAndLookForSelected ( LabelNode node, TreeNodeCollection nodes, LabelNode nodeRepresentingCurrentChoice, ICmObject objToSelect, Stack ownershipStack, IEnumerable chosenObjs ) : LabelNode

Add secondary nodes to tree at nodes (and check any that occur in rghvoChosen), and return the one whose hvo is hvoToSelect, or nodeRepresentingCurrentChoice if none match.

LabelNode ( ObjectLabel label, IVwStylesheet stylesheet, bool displayUsage ) : System.Collections.Generic

Initializes a new instance of the LabelNode class.

ResetVernacularFont ( ILgWritingSystemFactory wsf, int wsVern, IVwStylesheet stylesheet ) : void

Resets the vernacular font.

WantNodeForLabel ( ObjectLabel label ) : bool

Wants the node for label.

보호된 메소드들

메소드 설명
CheckForSelection ( ObjectLabel label, ICmObject objToSelect, LabelNode node, LabelNode nodeRepresentingCurrentChoice ) : LabelNode

Checks for selection.

CountUsages ( ) : int

Count how many references this item has. Virtual so a subclass can use a different algorithm (c.f. SemanticDomainsChooser's DomainNode).

Create ( ObjectLabel nol, IVwStylesheet stylesheet, bool displayUsage ) : LabelNode

Creates the specified LabelNode from the ObjectLabel.

비공개 메소드들

메소드 설명
GetVernacularFont ( ILgWritingSystemFactory wsf, int wsVern, IVwStylesheet stylesheet ) : Font
HasVernacularText ( ITsString tss, IEnumerable vernWses, int &wsVern ) : bool
SetNodeText ( ) : void

메소드 상세

AddChildren() 공개 메소드

Add the children nodes of a particular node in the tree. Do this recursively if that parameter is set to true. Also set the node as Checked if is it in the set or chosenObjs.
public AddChildren ( bool recursively, IEnumerable chosenObjs ) : void
recursively bool
chosenObjs IEnumerable
리턴 void

AddChildrenAndLookForSelected() 공개 메소드

Add the children nodes of a particular node in the tree. While adding nodes if a match is found for objToSelect then nodeRepresentingCurrentChoice assigned to it and is returned. Otherwise if no node in the tree matches objToSelect this method returns null.
public AddChildrenAndLookForSelected ( ICmObject objToSelect, Stack ownershipStack, IEnumerable chosenObjs ) : LabelNode
objToSelect ICmObject
ownershipStack Stack
chosenObjs IEnumerable
리턴 LabelNode

AddSecondaryNodes() 공개 메소드

Adds the secondary nodes.
public AddSecondaryNodes ( LabelNode node, TreeNodeCollection nodes, IEnumerable chosenObjs ) : void
node LabelNode The node.
nodes System.Windows.Forms.TreeNodeCollection The nodes.
chosenObjs IEnumerable The chosen objects.
리턴 void

AddSecondaryNodesAndLookForSelected() 공개 메소드

Add secondary nodes to tree at nodes (and check any that occur in rghvoChosen), and return the one whose hvo is hvoToSelect, or nodeRepresentingCurrentChoice if none match.
public AddSecondaryNodesAndLookForSelected ( LabelNode node, TreeNodeCollection nodes, LabelNode nodeRepresentingCurrentChoice, ICmObject objToSelect, Stack ownershipStack, IEnumerable chosenObjs ) : LabelNode
node LabelNode node to be added
nodes System.Windows.Forms.TreeNodeCollection where to add it
nodeRepresentingCurrentChoice LabelNode The node representing current choice.
objToSelect ICmObject The obj to select.
ownershipStack Stack The ownership stack.
chosenObjs IEnumerable The chosen objects.
리턴 LabelNode

CheckForSelection() 보호된 메소드

Checks for selection.
protected CheckForSelection ( ObjectLabel label, ICmObject objToSelect, LabelNode node, LabelNode nodeRepresentingCurrentChoice ) : LabelNode
label ObjectLabel The label.
objToSelect ICmObject The obj to select.
node LabelNode The node.
nodeRepresentingCurrentChoice LabelNode The node representing current choice.
리턴 LabelNode

CountUsages() 보호된 메소드

Count how many references this item has. Virtual so a subclass can use a different algorithm (c.f. SemanticDomainsChooser's DomainNode).
protected CountUsages ( ) : int
리턴 int

Create() 보호된 메소드

Creates the specified LabelNode from the ObjectLabel.
protected Create ( ObjectLabel nol, IVwStylesheet stylesheet, bool displayUsage ) : LabelNode
nol ObjectLabel
stylesheet IVwStylesheet
displayUsage bool true if usage statistics will be displayed; otherwise, false.
리턴 LabelNode

LabelNode() 공개 메소드

Initializes a new instance of the LabelNode class.
public LabelNode ( ObjectLabel label, IVwStylesheet stylesheet, bool displayUsage ) : System.Collections.Generic
label ObjectLabel The label.
stylesheet IVwStylesheet The stylesheet.
displayUsage bool true if usage statistics will be displayed; otherwise, false.
리턴 System.Collections.Generic

ResetVernacularFont() 공개 메소드

Resets the vernacular font.
public ResetVernacularFont ( ILgWritingSystemFactory wsf, int wsVern, IVwStylesheet stylesheet ) : void
wsf ILgWritingSystemFactory The WSF.
wsVern int The ws vern.
stylesheet IVwStylesheet The stylesheet.
리턴 void

WantNodeForLabel() 공개 메소드

Wants the node for label.
public WantNodeForLabel ( ObjectLabel label ) : bool
label ObjectLabel The label.
리턴 bool

프로퍼티 상세

m_stylesheet 보호되어 있는 프로퍼티

protected IVwStylesheet m_stylesheet
리턴 IVwStylesheet