Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CellLabel.cs
- _TransmitFileOverlappedAsyncResult.cs
- StackSpiller.cs
- ScriptingAuthenticationServiceSection.cs
- DataKeyArray.cs
- InfoCardHelper.cs
- DelegateBodyWriter.cs
- TextTreeDeleteContentUndoUnit.cs
- ValueType.cs
- RenderData.cs
- ReplyChannelBinder.cs
- MediaCommands.cs
- DecoderNLS.cs
- MatrixAnimationUsingKeyFrames.cs
- ColorInterpolationModeValidation.cs
- ListViewEditEventArgs.cs
- MemberProjectionIndex.cs
- MarkupCompilePass1.cs
- SingleTagSectionHandler.cs
- DynamicQueryableWrapper.cs
- Semaphore.cs
- TrackPoint.cs
- BehaviorEditorPart.cs
- FormatterServices.cs
- CodeTypeParameter.cs
- DetailsViewRowCollection.cs
- RawUIStateInputReport.cs
- WindowsFormsHelpers.cs
- Debug.cs
- CompModHelpers.cs
- DummyDataSource.cs
- EnterpriseServicesHelper.cs
- ClockGroup.cs
- ItemContainerPattern.cs
- GlyphRunDrawing.cs
- PanelDesigner.cs
- PanelStyle.cs
- Registration.cs
- ChameleonKey.cs
- DataBinder.cs
- CompModSwitches.cs
- OdbcConnectionPoolProviderInfo.cs
- DataSourceGeneratorException.cs
- InvokeWebServiceDesigner.cs
- BuildProviderCollection.cs
- MaskedTextBoxDesignerActionList.cs
- formatter.cs
- DbMetaDataColumnNames.cs
- StatusBar.cs
- WebScriptServiceHost.cs
- RawContentTypeMapper.cs
- Interfaces.cs
- DataGridViewCellParsingEventArgs.cs
- ObjectStateManager.cs
- CornerRadiusConverter.cs
- SamlAuthenticationStatement.cs
- ConfigXmlAttribute.cs
- messageonlyhwndwrapper.cs
- MarginsConverter.cs
- DeclarativeCatalogPart.cs
- Highlights.cs
- FontWeights.cs
- PropertyIDSet.cs
- DPCustomTypeDescriptor.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SpoolingTask.cs
- DiagnosticsElement.cs
- Calendar.cs
- ProfileParameter.cs
- VariableAction.cs
- StreamDocument.cs
- Context.cs
- InstallHelper.cs
- PreloadedPackages.cs
- _CookieModule.cs
- ServiceBuildProvider.cs
- EntityDataSourceUtil.cs
- CompilerError.cs
- PartialToken.cs
- BaseTemplateParser.cs
- Label.cs
- SmiMetaData.cs
- PageContent.cs
- OrderedEnumerableRowCollection.cs
- PrivilegeNotHeldException.cs
- CodeCompileUnit.cs
- WebPartCollection.cs
- NullableConverter.cs
- TextRunCacheImp.cs
- FileUpload.cs
- KeyInfo.cs
- SubMenuStyleCollection.cs
- X509CertificateCollection.cs
- TableLayoutCellPaintEventArgs.cs
- AspNetHostingPermission.cs
- ShutDownListener.cs
- WebPartExportVerb.cs
- VersionedStream.cs
- SerialPinChanges.cs
- DescendentsWalker.cs