C# Класс SIL.FieldWorks.FDO.DomainImpl.HomographConfiguration

This class stores various settings related to how homograph numbers (and sense numbers) are displayed.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
HomographConfiguration ( ) : System

Make one.

SetShowHomographNumber ( HeadwordVariant hv, bool val ) : void

Set whether homograph numbers are displayed for the specified variant.

ShowHomographNumber ( HeadwordVariant hv ) : bool

True to display homograph numbers in the default headword method used as the header of an entry in the dictionary and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword. (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)

ShowSenseNumber ( HeadwordVariant hv ) : bool

Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't make sense. This also implements the constraint that we don't show sense number when homograph number is suppressed.

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

Метод Описание
RestoreDefaults ( ) : void

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

HomographConfiguration() публичный метод

Make one.
public HomographConfiguration ( ) : System
Результат System

SetShowHomographNumber() публичный метод

Set whether homograph numbers are displayed for the specified variant.
public SetShowHomographNumber ( HeadwordVariant hv, bool val ) : void
hv HeadwordVariant
val bool
Результат void

ShowHomographNumber() публичный метод

True to display homograph numbers in the default headword method used as the header of an entry in the dictionary and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword. (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)
public ShowHomographNumber ( HeadwordVariant hv ) : bool
hv HeadwordVariant
Результат bool

ShowSenseNumber() публичный метод

Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't make sense. This also implements the constraint that we don't show sense number when homograph number is suppressed.
public ShowSenseNumber ( HeadwordVariant hv ) : bool
hv HeadwordVariant
Результат bool