Adds the specified number of years to the value of this instance.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
public DateTime AddYears(
	int value
)
Visual Basic (Declaration)
Public Function AddYears ( _
	value As Integer _
) As DateTime

Parameters

value
Type: System..::.Int32
A number of years. The value parameter can be negative or positive.

Return Value

A DateTime whose value is the sum of the date represented by this instance and the number of years represented by value.

See Also