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 / EdgeModeValidation.cs / 1 / EdgeModeValidation.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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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
- RequiredFieldValidator.cs
- SourceInterpreter.cs
- DataGridViewHeaderCell.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- NameSpaceExtractor.cs
- listitem.cs
- WindowsTooltip.cs
- Run.cs
- CannotUnloadAppDomainException.cs
- PagesSection.cs
- OleDbFactory.cs
- LicenseContext.cs
- WrapperEqualityComparer.cs
- Vector3DCollectionConverter.cs
- CachedFontFamily.cs
- SessionStateItemCollection.cs
- Group.cs
- ReflectTypeDescriptionProvider.cs
- XmlUtilWriter.cs
- ScriptModule.cs
- TranslateTransform3D.cs
- PriorityQueue.cs
- ServicePointManagerElement.cs
- UnmanagedMarshal.cs
- WSSecurityJan2004.cs
- CheckoutException.cs
- PeerObject.cs
- CfgRule.cs
- CompoundFileReference.cs
- OrderedDictionaryStateHelper.cs
- XmlSchemaAttributeGroup.cs
- HelpEvent.cs
- RightsManagementPermission.cs
- UnSafeCharBuffer.cs
- WebEventCodes.cs
- RadioButtonList.cs
- BitmapEffectGeneralTransform.cs
- TypeNameConverter.cs
- BitmapEffectInputData.cs
- ZoneIdentityPermission.cs
- SqlProviderServices.cs
- SortedDictionary.cs
- XmlParserContext.cs
- ErrorInfoXmlDocument.cs
- PolicyManager.cs
- ByteStreamMessageUtility.cs
- ApplicationHost.cs
- SymbolEqualComparer.cs
- SessionState.cs
- ServiceMemoryGates.cs
- cookie.cs
- Ref.cs
- SingleConverter.cs
- ActivitiesCollection.cs
- VectorAnimation.cs
- ReadContentAsBinaryHelper.cs
- PropertyMappingExceptionEventArgs.cs
- BadImageFormatException.cs
- ToolStripSplitStackLayout.cs
- NullRuntimeConfig.cs
- WebResponse.cs
- AddingNewEventArgs.cs
- FlowLayoutPanel.cs
- PermissionListSet.cs
- XmlTextReader.cs
- IdentitySection.cs
- CallContext.cs
- StaticResourceExtension.cs
- FixedSOMSemanticBox.cs
- XmlDomTextWriter.cs
- Table.cs
- XmlDataCollection.cs
- HttpProtocolImporter.cs
- ExclusiveNamedPipeTransportManager.cs
- WebPartManager.cs
- DependencySource.cs
- PasswordDeriveBytes.cs
- SkipQueryOptionExpression.cs
- DateRangeEvent.cs
- ControlBuilderAttribute.cs
- SyndicationSerializer.cs
- WebPermission.cs
- ImageSourceValueSerializer.cs
- UnicastIPAddressInformationCollection.cs
- RelationshipFixer.cs
- ComponentSerializationService.cs
- CachedTypeface.cs
- AppSettingsExpressionEditor.cs
- ElapsedEventArgs.cs
- HashSetDebugView.cs
- LineServices.cs
- IndexedEnumerable.cs
- FunctionDescription.cs
- ContextMenuService.cs
- JsonFormatReaderGenerator.cs
- MethodAccessException.cs
- DataGridViewCellStateChangedEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- GACMembershipCondition.cs
- HierarchicalDataSourceControl.cs