CodeCarvings.Piczard
Validate(Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > CropConstraint Class > Validate Method : Validate(Boolean) Method

throwException
If true, an Exception is thrown if the CropConstraint filter is not valid.
Validates the current CropConstraint filter to ensure that all the parameters are correctly configured (e.g. the CropMargins.Horizontal value is not higher than CoreSettings.Drawing.MaxImageSize.Width); if the "throwException" parameter is true then an Exception is thrown if the CropConstraint is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Validate( _
   ByVal throwException As Boolean _
) As Boolean
C#  
public bool Validate( 
   bool throwException
)

Parameters

throwException
If true, an Exception is thrown if the CropConstraint filter is not valid.

Return Value

true if the CropConstraint filter is valid; otherwise, false.

Exceptions

Exception Description
System.Exception The CropConstraint contains invalid parameters.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.