Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/ITextProvider.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/ITextProvider.cs
r2768 r4068 1 using System;2 using System.Collections.Generic;3 using System.Text;4 1 using System.Drawing; 5 2 6 namespace Netron.Diagramming.Core 7 { 3 namespace Netron.Diagramming.Core { 4 /// <summary> 5 /// The signature for any item that wants text editing. 6 /// </summary> 7 public interface ITextProvider { 8 // ------------------------------------------------------------------ 8 9 /// <summary> 9 /// The signature for any item that wants text editing.10 /// Returns the bounds of the text. 10 11 /// </summary> 11 public interface ITextProvider 12 { 13 // ------------------------------------------------------------------ 14 /// <summary> 15 /// Returns the bounds of the text. 16 /// </summary> 17 // ------------------------------------------------------------------ 18 Rectangle TextArea 19 { 20 get; 21 } 12 // ------------------------------------------------------------------ 13 Rectangle TextArea { 14 get; 15 } 22 16 23 // ------------------------------------------------------------------ 24 /// <summary> 25 /// Gets or sets the text. 26 /// </summary> 27 // ------------------------------------------------------------------ 28 string Text 29 { 30 get; 31 set; 32 } 17 // ------------------------------------------------------------------ 18 /// <summary> 19 /// Gets or sets the text. 20 /// </summary> 21 // ------------------------------------------------------------------ 22 string Text { 23 get; 24 set; 25 } 33 26 34 // ------------------------------------------------------------------ 35 /// <summary> 36 /// Gets or sets the style of the text to use. 37 /// </summary> 38 // ------------------------------------------------------------------ 39 ITextStyle TextStyle 40 { 41 get; 42 set; 43 } 27 // ------------------------------------------------------------------ 28 /// <summary> 29 /// Gets or sets the style of the text to use. 30 /// </summary> 31 // ------------------------------------------------------------------ 32 ITextStyle TextStyle { 33 get; 34 set; 35 } 44 36 45 // ------------------------------------------------------------------ 46 /// <summary> 47 /// Returns if text editing is allowed. 48 /// </summary> 49 // ------------------------------------------------------------------ 50 bool AllowTextEditing 51 { 52 get; 53 } 37 // ------------------------------------------------------------------ 38 /// <summary> 39 /// Returns if text editing is allowed. 40 /// </summary> 41 // ------------------------------------------------------------------ 42 bool AllowTextEditing { 43 get; 44 } 54 45 55 // ------------------------------------------------------------------ 56 /// <summary> 57 /// Returns the number of mouse clicks required to launch the in-place 58 /// text editor. 59 /// </summary> 60 // ------------------------------------------------------------------ 61 int EditTextClicks 62 { 63 get; 64 set; 65 } 46 // ------------------------------------------------------------------ 47 /// <summary> 48 /// Returns the number of mouse clicks required to launch the in-place 49 /// text editor. 50 /// </summary> 51 // ------------------------------------------------------------------ 52 int EditTextClicks { 53 get; 54 set; 66 55 } 56 } 67 57 }
Note: See TracChangeset
for help on using the changeset viewer.