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
- TemplatedWizardStep.cs
- InvokeGenerator.cs
- ButtonRenderer.cs
- ResourcePool.cs
- XmlNodeComparer.cs
- CommandHelper.cs
- CodeNamespace.cs
- PrimitiveList.cs
- MetadataItem_Static.cs
- Stylesheet.cs
- VScrollBar.cs
- SHA512Managed.cs
- DbXmlEnabledProviderManifest.cs
- FontCollection.cs
- BaseParser.cs
- InvalidContentTypeException.cs
- GPStream.cs
- XmlSchemaDocumentation.cs
- Classification.cs
- DBDataPermissionAttribute.cs
- BitmapMetadata.cs
- DataRowCollection.cs
- XmlWellformedWriter.cs
- HierarchicalDataSourceIDConverter.cs
- PropertyBuilder.cs
- CalendarBlackoutDatesCollection.cs
- XmlSignatureProperties.cs
- PartialCachingControl.cs
- CompilerTypeWithParams.cs
- FlowPosition.cs
- IsolatedStoragePermission.cs
- JournalEntry.cs
- UInt16Converter.cs
- ImportContext.cs
- AutomationProperty.cs
- LazyLoadBehavior.cs
- ScriptBehaviorDescriptor.cs
- serverconfig.cs
- IMembershipProvider.cs
- Win32Exception.cs
- XmlDocumentSerializer.cs
- Storyboard.cs
- baseshape.cs
- DataGridBoundColumn.cs
- Root.cs
- DivideByZeroException.cs
- Brush.cs
- ProfileService.cs
- hresults.cs
- CapabilitiesPattern.cs
- SkewTransform.cs
- EntityException.cs
- KeySplineConverter.cs
- XmlHierarchicalEnumerable.cs
- PipelineDeploymentState.cs
- DiffuseMaterial.cs
- ToolStripSplitStackLayout.cs
- MessageBuffer.cs
- ExternalException.cs
- VirtualDirectoryMappingCollection.cs
- AspNetSynchronizationContext.cs
- SchemaTableColumn.cs
- HttpProcessUtility.cs
- XmlException.cs
- FieldCollectionEditor.cs
- Intellisense.cs
- SelectionListComponentEditor.cs
- AppSettingsReader.cs
- QilGeneratorEnv.cs
- Avt.cs
- BinHexEncoder.cs
- TriState.cs
- Bidi.cs
- SoapMessage.cs
- DataGridViewRowHeaderCell.cs
- EarlyBoundInfo.cs
- ListViewItem.cs
- RowVisual.cs
- AutomationPattern.cs
- DefaultAuthorizationContext.cs
- BamlBinaryWriter.cs
- Color.cs
- BuilderPropertyEntry.cs
- JsonSerializer.cs
- EpmContentDeSerializerBase.cs
- XmlDocument.cs
- DataGridHeaderBorder.cs
- DbSourceCommand.cs
- XmlIlVisitor.cs
- MessageSmuggler.cs
- BindingMAnagerBase.cs
- ToolStripOverflow.cs
- SqlUdtInfo.cs
- ComPersistableTypeElementCollection.cs
- ZipIOModeEnforcingStream.cs
- XhtmlConformanceSection.cs
- InfoCardProofToken.cs
- DetailsViewInsertEventArgs.cs
- ParallelQuery.cs
- WebAdminConfigurationHelper.cs