C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : Clip Property |
'Declaration
<BrowsableAttribute(False)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public Property Clip As String
'Usage
Dim instance As C1FlexGridBase Dim value As String instance.Clip = value value = instance.Clip
[Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string Clip {get; set;}
[Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: property String^ Clip { String^ get(); void set ( String^ value); }
The string assigned to (or returned by) the Clip property may contain multiple cells. By default, tab characters (\t) indicate column breaks, and carriage return characters (\n) indicate row breaks.
The default row and column delimiters may be changed using the ClipSeparators property.
When a string is assigned to the Clip property, only the selected cells are affected. If there are more cells in the selected region than are described in the clip string, the remaining cells are ignored. If there are more cells described in the clip string than in the selected region, the extra portion of the clip string is ignored. Empty entries in the Clip string will clear existing cell contents.
To get or set a clip string for an arbitrary range, use a CellRange object.
The value returned is affected by the setting of the ClipboardCopyMode property.
// build clip string string s = "r1 c1\tr1 c2\nr2 c1\tr2 c2"; // select a 2 x 2 range and apply clip string to selection flex.Select(2, 2, 4, 4); flex.Clip = s;
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2