C# Class FarsiLibrary.Win.Controls.FAMonthView

Inheritance: FarsiLibrary.Win.BaseClasses.BaseDateControl
Afficher le fichier Open project: HEskandari/FarsiLibrary Class Usage Examples

Private Properties

Свойство Type Description
AddActiveRect void
AddActiveRect void
DrawDayValue void
FindActiveRectByPoint ActRect
FindActiveRectByTag ActRect
GetVisibleButtonCount int
OnDrawBody void
OnDrawBorder void
OnDrawFooter void
OnDrawFooterButtons void
OnDrawHeader void
OnDrawMonthHeader void
OnDrawYearHeader void
OnEnterPressed void
OnInternalMouseClick void
OnInternalMouseDown void
OnLocalizerChanged void
OnRecalculateRequired void
OnRectangleClick void
OnSelectionClick void
OnSelectionCollectionChanged void
RecalculateSelectionDown void
RecalculateSelectionLeft void
RecalculateSelectionRight void
RecalculateSelectionUp void
ResetActiveRectanglesState void
ResetAllRectangleStates void
ResetFocusedRectangleState void
ResetSelectedRectangleState void
SetFocusOnNextControl void
SetFocusOnPrevControl void

Méthodes publiques

Méthode Description
FAMonthView ( ) : System

Creates a new instance of FAMonthView for normal mode usage.

FAMonthView ( bool popupMode ) : System

Creates a new instance of FAMonthView class. Initiated control could be uses in PopupMode or Normal mode, depending on the use.

HitTest ( Point location ) : FocusedPart

Returns the part of the control that is tested.

ScrollDaysDown ( ) : void

Scrolls days in the view to the Down.

ScrollDaysLeft ( ) : void

Scrolls days in the view to the Left.

ScrollDaysRight ( ) : void

Scrolls days in the view to the Right.

ScrollDaysUp ( ) : void

Scrolls days in the view to the Up.

SetNoneDay ( ) : void

Clears the selection of the control. Also clears any selected date in MultiSelect mode.

SetTodayDay ( ) : void

Sets the selection value to Today.

ShouldSerializeAnchor ( ) : bool

Determines to serialize Anchor property or not

ShouldSerializeSelectedDateRange ( ) : bool

Determines to serialize SelectedDateRange property or not.

ShouldSerializeSize ( ) : bool

Determines to serialize Size property or not.

ToNextMonth ( ) : void

Changes the Month value to the Next Month.

ToNextYear ( ) : void

Changes the Year value to the Next Year.

ToPrevMonth ( ) : void

Changes the Month value to the Previous Month.

ToPrevYear ( ) : void

Changes the Year value to the Previous Year.

Méthodes protégées

Méthode Description
OnButtonClicked ( CalendarButtonClickedEventArgs e ) : void
OnDoubleClick ( EventArgs e ) : void
OnDrawCurrentDay ( CustomDrawDayEventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs pe ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void
OnResize ( EventArgs e ) : void

Executed when control is resized.

OnSelectedDateRangeChanged ( SelectedDateRangeChangedEventArgs e ) : void
OnSelectedDateTimeChanged ( EventArgs e ) : void

Private Methods

Méthode Description
AddActiveRect ( Rectangle rc, FocusedPart action ) : void
AddActiveRect ( Rectangle rc, FocusedPart action, object tag ) : void
DrawDayValue ( Graphics g, int day, Rectangle rcHead ) : void
FindActiveRectByPoint ( Point pnt ) : ActRect
FindActiveRectByTag ( object tag ) : ActRect
GetVisibleButtonCount ( ) : int
OnDrawBody ( PaintEventArgs pevent ) : void
OnDrawBorder ( PaintEventArgs e ) : void
OnDrawFooter ( PaintEventArgs pevent ) : void
OnDrawFooterButtons ( PaintEventArgs pevent ) : void
OnDrawHeader ( PaintEventArgs pevent ) : void
OnDrawMonthHeader ( PaintEventArgs pevent ) : void
OnDrawYearHeader ( PaintEventArgs pevent ) : void
OnEnterPressed ( ) : void
OnInternalMouseClick ( Point location ) : void
OnInternalMouseDown ( Point mousePoint ) : void
OnLocalizerChanged ( object sender, EventArgs e ) : void
OnRecalculateRequired ( ) : void
OnRectangleClick ( ActRect rc ) : void
OnSelectionClick ( ActRect rc ) : void
OnSelectionCollectionChanged ( object sender, CollectionChangedEventArgs e ) : void
RecalculateSelectionDown ( ) : void
RecalculateSelectionLeft ( ) : void
RecalculateSelectionRight ( ) : void
RecalculateSelectionUp ( ) : void
ResetActiveRectanglesState ( ) : void
ResetAllRectangleStates ( ) : void
ResetFocusedRectangleState ( ) : void
ResetSelectedRectangleState ( ) : void
SetFocusOnNextControl ( ) : void
SetFocusOnPrevControl ( ) : void

Method Details

FAMonthView() public méthode

Creates a new instance of FAMonthView for normal mode usage.
public FAMonthView ( ) : System
Résultat System

FAMonthView() public méthode

Creates a new instance of FAMonthView class. Initiated control could be uses in PopupMode or Normal mode, depending on the use.
public FAMonthView ( bool popupMode ) : System
popupMode bool
Résultat System

HitTest() public méthode

Returns the part of the control that is tested.
public HitTest ( Point location ) : FocusedPart
location Point
Résultat FocusedPart

OnButtonClicked() protected méthode

protected OnButtonClicked ( CalendarButtonClickedEventArgs e ) : void
e CalendarButtonClickedEventArgs
Résultat void

OnDoubleClick() protected méthode

protected OnDoubleClick ( EventArgs e ) : void
e EventArgs
Résultat void

OnDrawCurrentDay() protected méthode

protected OnDrawCurrentDay ( CustomDrawDayEventArgs e ) : void
e CustomDrawDayEventArgs
Résultat void

OnGotFocus() protected méthode

protected OnGotFocus ( EventArgs e ) : void
e EventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnLostFocus() protected méthode

protected OnLostFocus ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseClick() protected méthode

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseEnter() protected méthode

protected OnMouseEnter ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseWheel() protected méthode

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
Résultat void

OnResize() protected méthode

Executed when control is resized.
protected OnResize ( EventArgs e ) : void
e EventArgs
Résultat void

OnSelectedDateRangeChanged() protected méthode

protected OnSelectedDateRangeChanged ( SelectedDateRangeChangedEventArgs e ) : void
e SelectedDateRangeChangedEventArgs
Résultat void

OnSelectedDateTimeChanged() protected méthode

protected OnSelectedDateTimeChanged ( EventArgs e ) : void
e EventArgs
Résultat void

ScrollDaysDown() public méthode

Scrolls days in the view to the Down.
public ScrollDaysDown ( ) : void
Résultat void

ScrollDaysLeft() public méthode

Scrolls days in the view to the Left.
public ScrollDaysLeft ( ) : void
Résultat void

ScrollDaysRight() public méthode

Scrolls days in the view to the Right.
public ScrollDaysRight ( ) : void
Résultat void

ScrollDaysUp() public méthode

Scrolls days in the view to the Up.
public ScrollDaysUp ( ) : void
Résultat void

SetNoneDay() public méthode

Clears the selection of the control. Also clears any selected date in MultiSelect mode.
public SetNoneDay ( ) : void
Résultat void

SetTodayDay() public méthode

Sets the selection value to Today.
public SetTodayDay ( ) : void
Résultat void

ShouldSerializeAnchor() public méthode

Determines to serialize Anchor property or not
public ShouldSerializeAnchor ( ) : bool
Résultat bool

ShouldSerializeSelectedDateRange() public méthode

Determines to serialize SelectedDateRange property or not.
public ShouldSerializeSelectedDateRange ( ) : bool
Résultat bool

ShouldSerializeSize() public méthode

Determines to serialize Size property or not.
public ShouldSerializeSize ( ) : bool
Résultat bool

ToNextMonth() public méthode

Changes the Month value to the Next Month.
public ToNextMonth ( ) : void
Résultat void

ToNextYear() public méthode

Changes the Year value to the Next Year.
public ToNextYear ( ) : void
Résultat void

ToPrevMonth() public méthode

Changes the Month value to the Previous Month.
public ToPrevMonth ( ) : void
Résultat void

ToPrevYear() public méthode

Changes the Year value to the Previous Year.
public ToPrevYear ( ) : void
Résultat void