PowerTools SPREAD for Windows Forms 10.0J
AcceptsCrLf プロパティ (GcCharMaskCellType)


文字列をコピー、切り取り、および貼り付けるときのCrLf文字の処理方法を取得または設定します。
構文
'Declaration
 
Public Property AcceptsCrLf As CrLfMode
'使用法
 
Dim instance As GcCharMaskCellType
Dim value As CrLfMode
 
instance.AcceptsCrLf = value
 
value = instance.AcceptsCrLf
public CrLfMode AcceptsCrLf {get; set;}

プロパティ値

文字列をコピー、切り取り、および貼り付けるときのCrLf文字の処理モードを示すCrLfMode列挙体。
デフォルト値はCrLfMode.NoControlです。
例外
例外説明
System.ComponentModel.InvalidEnumArgumentExceptionvalue が有効な CrLfMode 項目ではありません。
解説
CrLf.Cutに設定すると、GcCharMaskで文字列をコピー、切り取り、または貼り付けるときの動作が標準のTextBoxと同じになります。
次のサンプルコードは、GcCharMaskセルを作成します。
GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType gc = new GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType();
gc.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.CtrlArrows;
gc.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Filter;
gc.AutoConvert = false;
gc.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Wide;

gc.CharBoxes.AddRange(GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfoCollection.Number1);
gc.CharBoxSpacing = 2;
gc.ClipContent = GrapeCity.Win.Spread.InputMan.CellType.ClipContent.ExcludeLiterals;

gc.ExitOnLastChar = false;
gc.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.FirstInputPosition;
gc.FormatString = "a";
gc.InputDirection = GrapeCity.Win.Spread.InputMan.CellType.CharMaskInputDirection.RightToLeft;
gc.PasswordChar = '#';

gc.PaintByControl = true;
gc.RecommendedValue = "aaaaaaaaaa";
gc.ShowRecommendedValue = true;
gc.UseSystemPasswordChar = true;
gc.UseSpreadDropDownButtonRender = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = gc;
Dim GC As New GrapeCity.Win.Spread.InputMan.CellType.GcCharMaskCellType()
GC.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.CtrlArrows
GC.AcceptsCrLf = GrapeCity.Win.Spread.InputMan.CellType.CrLfMode.Filter
GC.AutoConvert = False
GC.AllowSpace = GrapeCity.Win.Spread.InputMan.CellType.AllowSpace.Wide

GC.CharBoxes.AddRange(GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfoCollection.Number1)
GC.CharBoxSpacing = 2
GC.ClipContent = GrapeCity.Win.Spread.InputMan.CellType.ClipContent.ExcludeLiterals

GC.ExitOnLastChar = False
GC.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.FirstInputPosition
GC.FormatString = "a"
GC.InputDirection = GrapeCity.Win.Spread.InputMan.CellType.CharMaskInputDirection.RightToLeft
GC.PasswordChar = "#"

GC.PaintByControl = True
GC.RecommendedValue = "aaaaaaaaaa"
GC.ShowRecommendedValue = True
GC.UseSystemPasswordChar = True
GC.UseSpreadDropDownButtonRender = True
FpSpread1.ActiveSheet.Cells(0, 0).CellType = GC
参照

GcCharMaskCellType クラス
GcCharMaskCellType メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.