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 / AlignmentYValidation.cs / 1 / 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
- ChangeProcessor.cs
- WebFormDesignerActionService.cs
- XsdDuration.cs
- FileSecurity.cs
- RIPEMD160Managed.cs
- HelloOperationCD1AsyncResult.cs
- UnsafeNativeMethodsTablet.cs
- ListViewSortEventArgs.cs
- PrinterSettings.cs
- WindowsSysHeader.cs
- ListViewContainer.cs
- Decimal.cs
- ListView.cs
- PrePrepareMethodAttribute.cs
- AnimatedTypeHelpers.cs
- Behavior.cs
- BezierSegment.cs
- EdmScalarPropertyAttribute.cs
- CachedFontFamily.cs
- URI.cs
- NameValueFileSectionHandler.cs
- AssemblyInfo.cs
- AnnotationStore.cs
- TextContainerChangeEventArgs.cs
- NegatedCellConstant.cs
- TextCompositionManager.cs
- XmlNamedNodeMap.cs
- ObjectConverter.cs
- Token.cs
- XPathChildIterator.cs
- WebPartMenu.cs
- Schema.cs
- DetailsViewCommandEventArgs.cs
- DocumentViewerAutomationPeer.cs
- OpenFileDialog.cs
- PointAnimationClockResource.cs
- DependencyPropertyKind.cs
- TableDetailsRow.cs
- GlyphRunDrawing.cs
- CompilationAssemblyInstallComponent.cs
- EntityWithChangeTrackerStrategy.cs
- MarkupObject.cs
- AnonymousIdentificationSection.cs
- EnumValAlphaComparer.cs
- HtmlForm.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ListView.cs
- Logging.cs
- ContentType.cs
- BaseCodePageEncoding.cs
- SqlDataReaderSmi.cs
- ZipIOExtraFieldZip64Element.cs
- MsmqTransportSecurity.cs
- oledbmetadatacollectionnames.cs
- LazyTextWriterCreator.cs
- ListMarkerSourceInfo.cs
- CfgRule.cs
- SettingsPropertyWrongTypeException.cs
- CommonObjectSecurity.cs
- HttpListener.cs
- NotifyInputEventArgs.cs
- DropSource.cs
- XmlDocument.cs
- EventLogPermissionEntry.cs
- ProtocolsConfiguration.cs
- ProtocolsConfiguration.cs
- ContentTextAutomationPeer.cs
- EdmTypeAttribute.cs
- HelpPage.cs
- DataControlButton.cs
- PackageDigitalSignatureManager.cs
- smtppermission.cs
- ExtendedPropertyCollection.cs
- XamlToRtfParser.cs
- XhtmlConformanceSection.cs
- SqlCacheDependencyDatabase.cs
- XamlStyleSerializer.cs
- DynamicEntity.cs
- Byte.cs
- Int32Animation.cs
- AudioBase.cs
- _FixedSizeReader.cs
- DefaultBindingPropertyAttribute.cs
- ObjectSecurity.cs
- Polygon.cs
- ModuleConfigurationInfo.cs
- StringAnimationBase.cs
- Transform3D.cs
- ValidatingReaderNodeData.cs
- SqlDataSource.cs
- ListBindableAttribute.cs
- Point.cs
- RequiredFieldValidator.cs
- SystemColorTracker.cs
- ReadContentAsBinaryHelper.cs
- SystemColors.cs
- VSWCFServiceContractGenerator.cs
- AssemblyName.cs
- XPathPatternParser.cs
- RadioButtonDesigner.cs