バージョン

TaskSettings プロパティ

ユーザーによる行の編集または削除を許可するかどうかを決定する TaskSettings インスタンスを返します。
シンタックス
'宣言
 
Public ReadOnly Property TaskSettings As Infragistics.Win.UltraWinSchedule.TaskSettings
public Infragistics.Win.UltraWinSchedule.TaskSettings TaskSettings {get;}
使用例
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinGanttView


Private Sub TaskSettings_Load(ByVal sender As Object, ByVal e As EventArgs) Handles TaskSettings.Load

    ' Disable specific editing for all Tasks visible in GanttView control 
    Me.ultraGanttView1.TaskSettings.AllowDelete = Infragistics.Win.DefaultableBoolean.[False] 
    Me.ultraGanttView1.TaskSettings.AllowEditDuration = Infragistics.Win.DefaultableBoolean.[False] 
    Me.ultraGanttView1.TaskSettings.AllowEditDeadline = Infragistics.Win.DefaultableBoolean.[False] 
    
    
    'Allow specific editing for specific Tasks 
    Me.ultraGanttView1.CalendarInfo.Tasks(0).Tasks(0).TaskSettings.AllowEditStartDateTime = Infragistics.Win.DefaultableBoolean.[False] 
        
    Me.ultraGanttView1.CalendarInfo.Tasks(1).Tasks(0).TaskSettings.AllowEditPercentComplete = Infragistics.Win.DefaultableBoolean.[False] 

End Sub
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinGanttView;

private void TaskSettings_Load(object sender, EventArgs e)
{
					// Disable specific editing for all Tasks visible in GanttView control
             this.ultraGanttView1.TaskSettings.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
             this.ultraGanttView1.TaskSettings.AllowEditDuration = Infragistics.Win.DefaultableBoolean.False;
             this.ultraGanttView1.TaskSettings.AllowEditDeadline = Infragistics.Win.DefaultableBoolean.False;
            

            //Allow specific editing for specific Tasks
            this.ultraGanttView1.CalendarInfo.Tasks[0].Tasks[0].TaskSettings.AllowEditStartDateTime = Infragistics.Win.DefaultableBoolean.False;
            this.ultraGanttView1.CalendarInfo.Tasks[1].Tasks[0].TaskSettings.AllowEditPercentComplete = Infragistics.Win.DefaultableBoolean.False;
	
}
参照