protected void SetFormat(int start, int count, QTextCharFormat format) { interceptor.Invoke("setFormat$$#", "setFormat(int, int, const QTextCharFormat&)", typeof(void), typeof(int), start, typeof(int), count, typeof(QTextCharFormat), format); }
public void MergeCurrentCharFormat(QTextCharFormat modifier) { interceptor.Invoke("mergeCurrentCharFormat#", "mergeCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), modifier); }
public void SetCurrentCharFormat(QTextCharFormat format) { interceptor.Invoke("setCurrentCharFormat#", "setCurrentCharFormat(const QTextCharFormat&)", typeof(void), typeof(QTextCharFormat), format); }
public void SetWeekdayTextFormat(Qt.DayOfWeek dayOfWeek, QTextCharFormat format) { interceptor.Invoke("setWeekdayTextFormat$#", "setWeekdayTextFormat(Qt::DayOfWeek, const QTextCharFormat&)", typeof(void), typeof(Qt.DayOfWeek), dayOfWeek, typeof(QTextCharFormat), format); }
public void InsertBlock(QTextBlockFormat format, QTextCharFormat charFormat) { interceptor.Invoke("insertBlock##", "insertBlock(const QTextBlockFormat&, const QTextCharFormat&)", typeof(void), typeof(QTextBlockFormat), format, typeof(QTextCharFormat), charFormat); }
public void SetDateTextFormat(QDate date, QTextCharFormat format) { interceptor.Invoke("setDateTextFormat##", "setDateTextFormat(const QDate&, const QTextCharFormat&)", typeof(void), typeof(QDate), date, typeof(QTextCharFormat), format); }
void on_textEdit_currentCharFormatChanged(QTextCharFormat format) { var font = format.Font(); m_BoldAction.Checked = font.Bold(); m_ItalicAction.Checked = font.Italic(); m_UnderlineAction.Checked = font.Underline(); m_StrikethroughAction.Checked = font.StrikeOut(); }
public void InsertText(string text, QTextCharFormat format) { interceptor.Invoke("insertText$#", "insertText(const QString&, const QTextCharFormat&)", typeof(void), typeof(string), text, typeof(QTextCharFormat), format); }
void HandleFormatMenuActionTriggered(QAction action) { var cursor = textEdit.TextCursor(); QTextCharFormat fmt = new QTextCharFormat(); if (action == m_ClearFormattingAction) { cursor.SetCharFormat(fmt); textEdit.SetCurrentCharFormat(fmt); return; } if (action == m_BoldAction) fmt.SetFontWeight(action.Checked ? (int)QFont.Weight.Bold : (int)QFont.Weight.Normal); else if (action == m_ItalicAction) fmt.SetFontItalic(action.Checked); else if (action == m_UnderlineAction) fmt.SetFontUnderline(action.Checked); else if (action == m_StrikethroughAction) fmt.SetFontStrikeOut(action.Checked); cursor.MergeCharFormat(fmt); textEdit.MergeCurrentCharFormat(fmt); }
public void SetVerticalAlignment(QTextCharFormat.VerticalAlignment alignment) { interceptor.Invoke("setVerticalAlignment$", "setVerticalAlignment(QTextCharFormat::VerticalAlignment)", typeof(void), typeof(QTextCharFormat.VerticalAlignment), alignment); }
public void SetUnderlineStyle(QTextCharFormat.UnderlineStyle style) { interceptor.Invoke("setUnderlineStyle$", "setUnderlineStyle(QTextCharFormat::UnderlineStyle)", typeof(void), typeof(QTextCharFormat.UnderlineStyle), style); }