Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1305600 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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
- ISAPIRuntime.cs
- _SSPISessionCache.cs
- SqlComparer.cs
- PageTheme.cs
- CodeSpit.cs
- UnmanagedMarshal.cs
- IImplicitResourceProvider.cs
- Int16.cs
- QuadTree.cs
- EmbossBitmapEffect.cs
- ByeOperation11AsyncResult.cs
- OleStrCAMarshaler.cs
- ComponentCollection.cs
- Track.cs
- FakeModelItemImpl.cs
- FacetValueContainer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- CodeMemberMethod.cs
- ObjectSet.cs
- WebPartConnectionsConnectVerb.cs
- CompilerState.cs
- comcontractssection.cs
- iisPickupDirectory.cs
- PackageFilter.cs
- ReadOnlyDictionary.cs
- SerializationStore.cs
- TemplateXamlTreeBuilder.cs
- EUCJPEncoding.cs
- TreeViewImageIndexConverter.cs
- ButtonBase.cs
- NeedSkipTokenVisitor.cs
- _KerberosClient.cs
- SubMenuStyle.cs
- InternalBufferOverflowException.cs
- ArcSegment.cs
- GlobalEventManager.cs
- SurrogateEncoder.cs
- CellRelation.cs
- ScriptControlDescriptor.cs
- HuffModule.cs
- ArrayConverter.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- MenuItemStyle.cs
- Axis.cs
- OpCopier.cs
- EdmToObjectNamespaceMap.cs
- Int64Storage.cs
- ConfigXmlSignificantWhitespace.cs
- GridItemCollection.cs
- ComEventsMethod.cs
- BasicCommandTreeVisitor.cs
- DataGridViewTextBoxCell.cs
- ElementUtil.cs
- IDispatchConstantAttribute.cs
- SafeProcessHandle.cs
- AxHost.cs
- EffectiveValueEntry.cs
- Image.cs
- GeometryCollection.cs
- ContentIterators.cs
- AnimationStorage.cs
- WebPartTransformerAttribute.cs
- WindowsListViewItem.cs
- MarshalDirectiveException.cs
- TemplatedWizardStep.cs
- ChangesetResponse.cs
- FormsAuthenticationUser.cs
- BitmapEffectRenderDataResource.cs
- CatalogPart.cs
- EmptyReadOnlyDictionaryInternal.cs
- DataListItemEventArgs.cs
- XPathParser.cs
- XPathMultyIterator.cs
- ImageSource.cs
- MessageEventSubscriptionService.cs
- ReadContentAsBinaryHelper.cs
- SQLResource.cs
- DrawingCollection.cs
- SqlProviderServices.cs
- Site.cs
- DetailsViewRowCollection.cs
- AxWrapperGen.cs
- DataGridViewRowPostPaintEventArgs.cs
- SessionEndedEventArgs.cs
- MaterializeFromAtom.cs
- XmlLoader.cs
- ContentWrapperAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- TcpHostedTransportConfiguration.cs
- XslException.cs
- JsonServiceDocumentSerializer.cs
- HostProtectionException.cs
- DropSource.cs
- EmbeddedMailObjectCollectionEditor.cs
- serverconfig.cs
- COM2Properties.cs
- PointCollection.cs
- InputBindingCollection.cs
- Compiler.cs
- TileBrush.cs