public GetLanguageLineHeight ( int langNum ) : decimal | ||
langNum | int | |
리턴 | decimal |
private void FontSettingsLinkClicked(string langName, int langNum) { using (var frm = new ScriptSettingsDialog()) { frm.LanguageName = langName; frm.LanguageRightToLeft = _collectionSettings.GetLanguageRtl(langNum); frm.LanguageLineSpacing = _collectionSettings.GetLanguageLineHeight(langNum); frm.ShowDialog(this); // get the changes var newRtl = frm.LanguageRightToLeft; var newLs = frm.LanguageLineSpacing; if (newRtl != _collectionSettings.GetLanguageRtl(langNum)) { _collectionSettings.SetLanguageRtl(langNum, newRtl); ChangeThatRequiresRestart(); } if (newLs != _collectionSettings.GetLanguageLineHeight(langNum)) { _collectionSettings.SetLanguageLineHeight(langNum, newLs); ChangeThatRequiresRestart(); } } }
private void FontSettingsLinkClicked(string langName, int langNum) { using (var frm = new ScriptSettingsDialog()) { frm.LanguageName = langName; frm.LanguageRightToLeft = _collectionSettings.GetLanguageRtl(langNum); frm.LanguageLineSpacing = _collectionSettings.GetLanguageLineHeight(langNum); frm.BreakLinesOnlyAtSpaces = _collectionSettings.GetBreakLinesOnlyAtSpaces(langNum); frm.ShowDialog(this); // get the changes var newRtl = frm.LanguageRightToLeft; var newLs = frm.LanguageLineSpacing; var newBreak = frm.BreakLinesOnlyAtSpaces; if (newRtl != _collectionSettings.GetLanguageRtl(langNum)) { _collectionSettings.SetLanguageRtl(langNum, newRtl); ChangeThatRequiresRestart(); } if (newLs != _collectionSettings.GetLanguageLineHeight(langNum)) { // Clicking "OK" writes out settingsCollectionStyles.css which is all that is needed // for this to take immediate effect. _collectionSettings.SetLanguageLineHeight(langNum, newLs); } if (newBreak != _collectionSettings.GetBreakLinesOnlyAtSpaces(langNum)) { // Clicking "OK" writes out settingsCollectionStyles.css which is all that is needed // for this to take immediate effect. _collectionSettings.SetBreakLinesOnlyAtSpaces(langNum, newBreak); } } }