Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / FillRuleValidation.cs / 1 / 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
- SqlInternalConnectionTds.cs
- TypeUnloadedException.cs
- SqlProcedureAttribute.cs
- MultiAsyncResult.cs
- ApplicationFileParser.cs
- ListViewPagedDataSource.cs
- WebBrowsableAttribute.cs
- ConditionalAttribute.cs
- CachedRequestParams.cs
- GridViewRowEventArgs.cs
- DataBindingValueUIHandler.cs
- UnderstoodHeaders.cs
- HandlerBase.cs
- EUCJPEncoding.cs
- Viewport3DVisual.cs
- AccessedThroughPropertyAttribute.cs
- UndirectedGraph.cs
- Assembly.cs
- wgx_render.cs
- XmlSchemaElement.cs
- Error.cs
- SoapClientMessage.cs
- ACL.cs
- PointConverter.cs
- SoapObjectInfo.cs
- DataGridViewColumnCollection.cs
- Mouse.cs
- FamilyTypeface.cs
- DispatcherFrame.cs
- GifBitmapDecoder.cs
- ServiceBusyException.cs
- TimestampInformation.cs
- ErasingStroke.cs
- GridViewCancelEditEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlCollation.cs
- FileDialog.cs
- WebHttpBindingElement.cs
- ErrorRuntimeConfig.cs
- DictionarySectionHandler.cs
- BinaryParser.cs
- DataControlButton.cs
- __TransparentProxy.cs
- TitleStyle.cs
- DataReceivedEventArgs.cs
- WebPartZone.cs
- ClientTargetCollection.cs
- XmlSchemaExternal.cs
- DataGridColumnDropSeparator.cs
- BitmapImage.cs
- TextEditorTyping.cs
- DocumentApplicationJournalEntry.cs
- ZeroOpNode.cs
- MulticastDelegate.cs
- DbConnectionFactory.cs
- ShapingWorkspace.cs
- ObjectReaderCompiler.cs
- DataGridHelper.cs
- EditableRegion.cs
- X509PeerCertificateAuthenticationElement.cs
- DictionaryItemsCollection.cs
- ProcessThreadCollection.cs
- CodeMemberProperty.cs
- Ref.cs
- ApplicationFileParser.cs
- UrlRoutingHandler.cs
- contentDescriptor.cs
- ListViewInsertionMark.cs
- BigInt.cs
- PersonalizablePropertyEntry.cs
- RadioButtonDesigner.cs
- OnOperation.cs
- _Rfc2616CacheValidators.cs
- WebRequestModuleElement.cs
- OptimalTextSource.cs
- SortAction.cs
- X509ChainPolicy.cs
- DnsPermission.cs
- ClientEventManager.cs
- CategoryNameCollection.cs
- ConnectionPoolManager.cs
- TCEAdapterGenerator.cs
- RenderContext.cs
- ArraySegment.cs
- DynamicRendererThreadManager.cs
- LoginCancelEventArgs.cs
- PassportAuthenticationEventArgs.cs
- DatasetMethodGenerator.cs
- ExtensionWindowHeader.cs
- DataBoundLiteralControl.cs
- ScriptingScriptResourceHandlerSection.cs
- HtmlControlDesigner.cs
- TreeIterator.cs
- HtmlElementEventArgs.cs
- WpfSharedXamlSchemaContext.cs
- StorageSetMapping.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- WebRequestModulesSection.cs
- DataGridViewLayoutData.cs
- ComplexObject.cs