System.Windows.Forms.DataFormats.GetFormat C# (CSharp) Method

GetFormat() public static method

public static GetFormat ( string format ) : System.Text.Format
format string
return System.Text.Format
		public static Format GetFormat (string format)
		{
			lock (lock_object) {
				if (!initialized)
					Init ();
				return Format.Add (format);
			}
		}

Same methods

DataFormats::GetFormat ( int id ) : System.Text.Format

Usage Example

コード例 #1
0
 private void PasteHandler(object sender, Forms.KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.V)
     {
         richTextEditorBox.Paste(DataFormats.GetFormat(DataFormats.Text));
         e.Handled = true;
     }
 }
All Usage Examples Of System.Windows.Forms.DataFormats::GetFormat