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
- MouseEventArgs.cs
- FontFaceLayoutInfo.cs
- MulticastDelegate.cs
- WebBrowserPermission.cs
- TextModifierScope.cs
- UserPersonalizationStateInfo.cs
- SafeNativeMethods.cs
- GridViewDeleteEventArgs.cs
- SHA512Managed.cs
- StrokeCollection.cs
- TracedNativeMethods.cs
- GenericRootAutomationPeer.cs
- MultiView.cs
- CommittableTransaction.cs
- NameValuePair.cs
- InfocardExtendedInformationEntry.cs
- ToolStripItem.cs
- DataColumnMappingCollection.cs
- GestureRecognitionResult.cs
- ConstrainedDataObject.cs
- ToggleProviderWrapper.cs
- HandleDictionary.cs
- EventProviderTraceListener.cs
- CombinedTcpChannel.cs
- Point4DValueSerializer.cs
- HttpApplication.cs
- SignedXml.cs
- ZoneMembershipCondition.cs
- AsymmetricKeyExchangeFormatter.cs
- NoPersistHandle.cs
- EntityDataSourceValidationException.cs
- EntityViewGenerator.cs
- BitmapDecoder.cs
- GlyphCache.cs
- DocumentPageHost.cs
- Utils.cs
- HMACSHA1.cs
- DiscoveryProxy.cs
- Hyperlink.cs
- XPathPatternBuilder.cs
- XmlHierarchicalEnumerable.cs
- RectangleHotSpot.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DBSqlParserColumnCollection.cs
- CultureInfoConverter.cs
- RouteItem.cs
- TrackingProfile.cs
- BaseTemplateBuildProvider.cs
- CardSpaceShim.cs
- Freezable.cs
- StringCollection.cs
- ExpanderAutomationPeer.cs
- FrameAutomationPeer.cs
- XmlMapping.cs
- FunctionUpdateCommand.cs
- ValueSerializer.cs
- SystemWebCachingSectionGroup.cs
- RedirectionProxy.cs
- HtmlSelectionListAdapter.cs
- MessageEventSubscriptionService.cs
- LabelDesigner.cs
- RuleAction.cs
- assertwrapper.cs
- LabelAutomationPeer.cs
- SynchronizationContext.cs
- ListBox.cs
- XmlSerializerNamespaces.cs
- MailHeaderInfo.cs
- ConfigurationElementProperty.cs
- XPathArrayIterator.cs
- __Filters.cs
- _DisconnectOverlappedAsyncResult.cs
- OdbcFactory.cs
- SystemIPInterfaceStatistics.cs
- TextDecorationCollection.cs
- CustomErrorsSection.cs
- AdRotator.cs
- ExcludeFromCodeCoverageAttribute.cs
- FormatSettings.cs
- DetailsViewPageEventArgs.cs
- XPathNavigatorKeyComparer.cs
- RuleValidation.cs
- CursorConverter.cs
- ContractReference.cs
- RewritingSimplifier.cs
- TraceLog.cs
- FileDialog.cs
- VideoDrawing.cs
- RelationshipSet.cs
- streamingZipPartStream.cs
- TableRowCollection.cs
- dataprotectionpermission.cs
- StyleModeStack.cs
- ClientTargetSection.cs
- IfAction.cs
- InheritanceAttribute.cs
- PrincipalPermission.cs
- CodePrimitiveExpression.cs
- DebugHandleTracker.cs
- X509ChainElement.cs