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
- SubMenuStyleCollection.cs
- ConfigurationLocation.cs
- ToolStripDropDownClosedEventArgs.cs
- PolyBezierSegment.cs
- CompressedStack.cs
- ServicePoint.cs
- XmlDocumentType.cs
- XpsSerializationException.cs
- GenericPrincipal.cs
- ToggleButton.cs
- DependencyObject.cs
- GenerateScriptTypeAttribute.cs
- ChangeNode.cs
- ViewKeyConstraint.cs
- SplitterEvent.cs
- HtmlSelect.cs
- Image.cs
- EmptyStringExpandableObjectConverter.cs
- RangeValidator.cs
- PngBitmapDecoder.cs
- WriteableBitmap.cs
- RectAnimationBase.cs
- UpdateProgress.cs
- ObjectStateFormatter.cs
- Drawing.cs
- FixedSOMGroup.cs
- ExtendedPropertyDescriptor.cs
- AtomServiceDocumentSerializer.cs
- ApplicationCommands.cs
- TableHeaderCell.cs
- TypeConverter.cs
- Italic.cs
- SqlBinder.cs
- SplineKeyFrames.cs
- MenuItem.cs
- DetailsViewModeEventArgs.cs
- PipeConnection.cs
- DivideByZeroException.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- RealizedColumnsBlock.cs
- ViewBase.cs
- GraphicsPathIterator.cs
- HwndSourceParameters.cs
- ColumnMapProcessor.cs
- ConfigurationProperty.cs
- CatalogZoneBase.cs
- EditorZone.cs
- WindowsGraphicsCacheManager.cs
- UrlPath.cs
- __Filters.cs
- XMLUtil.cs
- SelectionUIHandler.cs
- WriteLineDesigner.xaml.cs
- SHA512Managed.cs
- PropertyDescriptor.cs
- HttpCachePolicyElement.cs
- AuthenticationSection.cs
- SchemaImporterExtensionElement.cs
- Context.cs
- EventItfInfo.cs
- MsmqInputSessionChannelListener.cs
- CompareValidator.cs
- PagesSection.cs
- ToolStripContentPanel.cs
- MessageQueueException.cs
- ThicknessConverter.cs
- DefaultClaimSet.cs
- DataDocumentXPathNavigator.cs
- XsdCachingReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlNodeReader.cs
- IncrementalCompileAnalyzer.cs
- EpmTargetTree.cs
- ResponseStream.cs
- SqlCacheDependencySection.cs
- OracleParameterBinding.cs
- GeneralTransform3D.cs
- BitVec.cs
- SystemIPInterfaceProperties.cs
- XPathSelectionIterator.cs
- OleDbStruct.cs
- InternalBufferOverflowException.cs
- JapaneseCalendar.cs
- TextTrailingCharacterEllipsis.cs
- Pointer.cs
- SqlServer2KCompatibilityCheck.cs
- WindowsStatic.cs
- DoWorkEventArgs.cs
- DataGridViewDataConnection.cs
- Button.cs
- ResourcePermissionBaseEntry.cs
- PersonalizationStateInfo.cs
- SpeechSeg.cs
- ExpressionBindings.cs
- BitmapMetadata.cs
- XmlHierarchicalEnumerable.cs
- UserPreferenceChangingEventArgs.cs
- DataContractSerializerSection.cs
- EditorZoneBase.cs
- HostExecutionContextManager.cs