Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ValidatorCompatibilityHelper.cs
- SrgsOneOf.cs
- DecoderFallback.cs
- RequiredAttributeAttribute.cs
- Translator.cs
- AccessDataSource.cs
- IndentedWriter.cs
- ExpressionPrefixAttribute.cs
- ActivitiesCollection.cs
- X509CertificateCollection.cs
- ImageSource.cs
- ImageAttributes.cs
- CodeLabeledStatement.cs
- Parallel.cs
- UnsignedPublishLicense.cs
- DbBuffer.cs
- BoolExpressionVisitors.cs
- HeaderedContentControl.cs
- AssemblyResolver.cs
- SchemaMapping.cs
- CheckBoxBaseAdapter.cs
- WbmpConverter.cs
- XmlImplementation.cs
- sqlmetadatafactory.cs
- VarRemapper.cs
- CodeAttachEventStatement.cs
- AutomationEventArgs.cs
- DetailsViewPagerRow.cs
- PolicyException.cs
- Timer.cs
- CryptoConfig.cs
- SequenceDesigner.xaml.cs
- WeakReadOnlyCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- GenericParameterDataContract.cs
- CompatibleComparer.cs
- Rijndael.cs
- DataSourceProvider.cs
- MetadataItemSerializer.cs
- ErrorStyle.cs
- BinaryObjectWriter.cs
- GlyphTypeface.cs
- ComponentEditorPage.cs
- StateChangeEvent.cs
- TraceRecord.cs
- DocumentViewerBaseAutomationPeer.cs
- BindToObject.cs
- QueryCacheEntry.cs
- DataGridTextBox.cs
- ButtonField.cs
- RuntimeArgumentHandle.cs
- ComboBoxAutomationPeer.cs
- ListManagerBindingsCollection.cs
- RenderOptions.cs
- rsa.cs
- DbParameterCollection.cs
- ListChangedEventArgs.cs
- XmlEntity.cs
- MetadataCache.cs
- Win32.cs
- IQueryable.cs
- DateTimeSerializationSection.cs
- IndexerNameAttribute.cs
- HwndSourceKeyboardInputSite.cs
- MetabaseSettings.cs
- LoopExpression.cs
- FamilyMap.cs
- CodeCatchClause.cs
- TimeSpanParse.cs
- FtpWebResponse.cs
- FontUnit.cs
- StateMachine.cs
- EntitySqlQueryCacheEntry.cs
- WebPartDisplayModeCollection.cs
- SqlGatherProducedAliases.cs
- SvcMapFile.cs
- CopyAttributesAction.cs
- AuthorizationPolicyTypeElementCollection.cs
- Int16Animation.cs
- OrderedDictionary.cs
- ConfigPathUtility.cs
- LexicalChunk.cs
- HostSecurityManager.cs
- TransactionFlowBindingElement.cs
- DateTimeFormatInfo.cs
- ElementAtQueryOperator.cs
- CaseExpr.cs
- LocalizeDesigner.cs
- ToolStripDropDownMenu.cs
- ConfigXmlDocument.cs
- MaskDescriptors.cs
- XmlSerializer.cs
- IntSecurity.cs
- ServerValidateEventArgs.cs
- BindingBase.cs
- OrderPreservingPipeliningSpoolingTask.cs
- WebPartsPersonalization.cs
- TemplatePropertyEntry.cs
- HyperlinkAutomationPeer.cs
- GenericParameterDataContract.cs