Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / FillRuleValidation.cs / 1305600 / FillRuleValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsFillRuleValid(object valueObject) { FillRule value = (FillRule) valueObject; return (value == FillRule.EvenOdd) || (value == FillRule.Nonzero); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsFillRuleValid(object valueObject) { FillRule value = (FillRule) valueObject; return (value == FillRule.EvenOdd) || (value == FillRule.Nonzero); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PartBasedPackageProperties.cs
- MbpInfo.cs
- AuthenticationSection.cs
- RowToParametersTransformer.cs
- _HeaderInfo.cs
- PropertyNames.cs
- ApplicationSecurityManager.cs
- Logging.cs
- CommandValueSerializer.cs
- HttpGetProtocolImporter.cs
- ColorPalette.cs
- FacetDescription.cs
- ModelTreeManager.cs
- BitmapPalettes.cs
- TextRange.cs
- activationcontext.cs
- BoundConstants.cs
- FormViewDeletedEventArgs.cs
- XmlReflectionMember.cs
- AppSettingsSection.cs
- EnumerableWrapperWeakToStrong.cs
- PropertyPathConverter.cs
- DataGridCellAutomationPeer.cs
- DynamicPropertyHolder.cs
- ResXFileRef.cs
- ToolStripDropDown.cs
- DesignerEditorPartChrome.cs
- WorkflowMarkupSerializationManager.cs
- DataGridCell.cs
- PathSegmentCollection.cs
- KerberosSecurityTokenProvider.cs
- DataServiceRequest.cs
- Models.cs
- IndexedDataBuffer.cs
- Menu.cs
- WebRequestModulesSection.cs
- ParentUndoUnit.cs
- Misc.cs
- WindowsListViewSubItem.cs
- WebColorConverter.cs
- DataObject.cs
- ReceiveContent.cs
- UnmanagedBitmapWrapper.cs
- WindowShowOrOpenTracker.cs
- GeneratedCodeAttribute.cs
- OrderPreservingSpoolingTask.cs
- SspiHelper.cs
- CompletionCallbackWrapper.cs
- MonthChangedEventArgs.cs
- SafeArrayTypeMismatchException.cs
- SurrogateEncoder.cs
- XmlILModule.cs
- PartialList.cs
- PanelDesigner.cs
- PnrpPermission.cs
- XPathExpr.cs
- HitTestResult.cs
- SiteIdentityPermission.cs
- SecurityAccessDeniedException.cs
- DynamicFilterExpression.cs
- AuthenticatingEventArgs.cs
- BufferedOutputAsyncStream.cs
- RequiredFieldValidator.cs
- DiagnosticSection.cs
- Size.cs
- DataGridCell.cs
- InputEventArgs.cs
- TcpTransportSecurity.cs
- SimpleHandlerBuildProvider.cs
- EventLogConfiguration.cs
- XpsViewerException.cs
- LinqDataSourceValidationException.cs
- PropertyPathWorker.cs
- XamlSerializerUtil.cs
- LogLogRecord.cs
- DetailsViewInsertEventArgs.cs
- KnownTypes.cs
- BufferModesCollection.cs
- AnnotationDocumentPaginator.cs
- FontFamilyIdentifier.cs
- HtmlElement.cs
- ValidationHelper.cs
- PageVisual.cs
- HandledEventArgs.cs
- ResourceDisplayNameAttribute.cs
- DataViewSetting.cs
- OdbcUtils.cs
- OpCodes.cs
- MimeReturn.cs
- XamlToRtfWriter.cs
- ParallelRangeManager.cs
- EmptyControlCollection.cs
- TargetException.cs
- ObjectQueryProvider.cs
- CodeValidator.cs
- ExecutionEngineException.cs
- IntPtr.cs
- WebPartTransformerCollection.cs
- DataGridViewCellEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs