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
- ProjectionPath.cs
- ComPersistableTypeElement.cs
- LogReservationCollection.cs
- ConnectionManagementElement.cs
- SHA256Managed.cs
- SystemMulticastIPAddressInformation.cs
- InvalidProgramException.cs
- ProfileManager.cs
- GridViewColumn.cs
- EdmScalarPropertyAttribute.cs
- RepeaterItemCollection.cs
- RecommendedAsConfigurableAttribute.cs
- DataGridHeaderBorder.cs
- TcpStreams.cs
- DependencyPropertyAttribute.cs
- PropertyConverter.cs
- SessionPageStateSection.cs
- PropertyMapper.cs
- ClientProxyGenerator.cs
- IdnMapping.cs
- Selection.cs
- Condition.cs
- TdsParserStaticMethods.cs
- CursorConverter.cs
- BindingContext.cs
- DataKeyArray.cs
- TextCharacters.cs
- SrgsRuleRef.cs
- Material.cs
- SoapDocumentServiceAttribute.cs
- MailAddress.cs
- RunInstallerAttribute.cs
- CustomPopupPlacement.cs
- DragStartedEventArgs.cs
- NamedPipeAppDomainProtocolHandler.cs
- Int32EqualityComparer.cs
- KeyGesture.cs
- XPathMultyIterator.cs
- CodeTypeDelegate.cs
- ISAPIRuntime.cs
- HttpCacheVaryByContentEncodings.cs
- CuspData.cs
- DataGridViewButtonColumn.cs
- ConfigurationManagerInternalFactory.cs
- _ConnectOverlappedAsyncResult.cs
- XmlUrlResolver.cs
- CodeLinePragma.cs
- BulletedListEventArgs.cs
- Transform3DGroup.cs
- ValueExpressions.cs
- RootBrowserWindowProxy.cs
- ToolStripPanel.cs
- ConnectivityStatus.cs
- Expressions.cs
- SecurityElement.cs
- TemplateBindingExtensionConverter.cs
- MdImport.cs
- IdentityNotMappedException.cs
- CustomCategoryAttribute.cs
- TextTreeTextElementNode.cs
- ListBindingConverter.cs
- ListViewAutomationPeer.cs
- ExpressionBindingCollection.cs
- CodeBinaryOperatorExpression.cs
- ListBoxItem.cs
- BCryptNative.cs
- WSHttpBinding.cs
- XmlUTF8TextWriter.cs
- ConfigurationLoader.cs
- MetadataArtifactLoaderResource.cs
- CompilerWrapper.cs
- ToolStripDropDownMenu.cs
- ArraySegment.cs
- EventDescriptor.cs
- WebPartConnectionsCloseVerb.cs
- TableCellCollection.cs
- SerializationStore.cs
- XmlQueryRuntime.cs
- WorkflowQueueInfo.cs
- AsyncResult.cs
- ConditionalDesigner.cs
- CrossSiteScriptingValidation.cs
- DLinqTableProvider.cs
- coordinator.cs
- MasterPage.cs
- Model3D.cs
- RuntimeHelpers.cs
- RemoteHelper.cs
- CustomLineCap.cs
- Size3DConverter.cs
- SafeTimerHandle.cs
- TdsValueSetter.cs
- OdbcEnvironmentHandle.cs
- LambdaSerializationException.cs
- MimeBasePart.cs
- PromptBuilder.cs
- PeerMaintainer.cs
- LexicalChunk.cs
- MiniModule.cs
- DiagnosticTraceSource.cs