/// <summary> /// Creates a debug string for spamming the display with too much information /// </summary> /// <returns>A formatted debug string</returns> public override string ToString() { return ("CurrentColumn: " + CurrentColumn.ToString() + "\n" + "CurrentRow:" + CurrentRow.ToString() + "\n" + "ApplicationCursorKeysMode:" + ApplicationCursorKeysMode.ToString() + "\n" + "Attribute:\n" + Attributes.ToString() + "\n" + "TabStops:" + string.Join(",", TabStops.Select(x => x.ToString()).ToList()) + "\n" + "WordWrap:" + WordWrap.ToString() + "\n" + "ReverseVideoMode:" + ReverseVideoMode.ToString() + "\n" + "OriginMode:" + OriginMode.ToString() + "\n" + "InsertMode:" + InsertMode.ToString() + "\n" + "ShowCursor:" + ShowCursor.ToString() + "\n" + "BlinkingCursor:" + BlinkingCursor.ToString() + "\n" + "CursorShape:" + CursorShape.ToString() + "\n" + "Utf8:" + Utf8.ToString() + "\n" + "CharacterSetMode:" + CharacterSetMode.ToString() + "\n" + "G0:" + G0.ToString() + "\n" + "G1:" + G1.ToString() + "\n" + "G2:" + G2.ToString() + "\n" + "G3:" + G3.ToString() + "\n" + "Vt300G1:" + Vt300G1.ToString() + "\n" + "Vt300G2:" + Vt300G2.ToString() + "\n" + "Vt300G3:" + Vt300G3.ToString() + "\n" + "Vt52AlternateKeypad: " + Vt52AlternateKeypad.ToString() + "\n" + "Vt52GraphicsMode: " + Vt52GraphicsMode.ToString() + "\n" + "AutomaticNewLine:" + AutomaticNewLine.ToString() + "\n" + "ConfiguredColumns:" + ConfiguredColumns.ToString() + "\n" + "National Character Replacement Mode:" + NationalCharacterReplacementMode.ToString() + "\n" + "Single shift character mode:" + SingleShiftSelectCharacterMode.ToString() + "\n" ); }
private void FilterToNotSelected(object p) { var tbs = Helpers.AllChildren <TextBox>(this); TextBox tb = null; foreach (var item in tbs) { DataGridColumnHeader header = TryFindParent <DataGridColumnHeader>(item); if (header.Column != null && header.Column == CurrentColumn) { tb = item; break; } } var text = (CurrentColumn.GetCellContent(CurrentCell.Item) as TextBlock).Text; //Kludge tb.Text = "!" + text; }
/// <summary> /// クリップボードの中身を現在のセルに貼り付ける。 /// </summary> private void OnPastingCellClipboardContent() { // クリップボードのデータ var dat = (string)Clipboard.GetData(DataFormats.Text); // 編集開始 this.BeginEdit(); // ペースト処理 CurrentColumn.OnPastingCellClipboardContent(CurrentItem, dat); // 編集確定 if (!this.CommitEdit(DataGridEditingUnit.Row, true)) { // 編集確定できなかった場合はキャンセル this.CancelEdit(); } }
public void showDebugCoord() { debugText(CurrentColumn.ToString() + ":" + CurrentRow.ToString()); }
private void notebox_SelectionChanged(object sender, EventArgs e) { statusCurrentColumnCount.Text = String.Format("{0},", CurrentColumn.ToString()); statusCurrentLineCount.Text = String.Format("{0},", CurrentLine.ToString()); }