Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1305600 / AlignmentXValidation.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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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
- EditorOptionAttribute.cs
- TemplatedControlDesigner.cs
- DataSetSchema.cs
- PersonalizationState.cs
- ComponentResourceManager.cs
- TimelineGroup.cs
- CalendarButton.cs
- SocketElement.cs
- Glyph.cs
- PrivilegedConfigurationManager.cs
- Canvas.cs
- MediaCommands.cs
- RootProfilePropertySettingsCollection.cs
- CompareValidator.cs
- XsdDataContractImporter.cs
- ListViewItem.cs
- SplitContainer.cs
- ToolStripRenderer.cs
- Annotation.cs
- ToolStripSplitStackLayout.cs
- ClientFormsIdentity.cs
- InstanceStoreQueryResult.cs
- TrackingStringDictionary.cs
- unitconverter.cs
- ExpandoClass.cs
- RelatedCurrencyManager.cs
- TextContainer.cs
- ExcludeFromCodeCoverageAttribute.cs
- DesignerTransaction.cs
- SmtpFailedRecipientsException.cs
- MemberPath.cs
- TimeSpanOrInfiniteConverter.cs
- HelpInfo.cs
- XmlSchemaParticle.cs
- FrameworkRichTextComposition.cs
- ApplicationInfo.cs
- WindowsListViewGroupHelper.cs
- TraceUtils.cs
- ClientUrlResolverWrapper.cs
- SwitchElementsCollection.cs
- Literal.cs
- NonBatchDirectoryCompiler.cs
- RectangleConverter.cs
- VideoDrawing.cs
- InstanceStoreQueryResult.cs
- WindowsFormsHelpers.cs
- DataSourceView.cs
- CodeTypeMemberCollection.cs
- Condition.cs
- CodeGen.cs
- ApplicationActivator.cs
- XPathAxisIterator.cs
- FormViewUpdatedEventArgs.cs
- SeekableMessageNavigator.cs
- XmlUtilWriter.cs
- WebEvents.cs
- SymmetricKeyWrap.cs
- PenCursorManager.cs
- Label.cs
- ReadOnlyTernaryTree.cs
- WebControl.cs
- CSharpCodeProvider.cs
- SafeNativeMethods.cs
- OutputCacheSection.cs
- InputReport.cs
- FormattedTextSymbols.cs
- ProgressBarAutomationPeer.cs
- Vector3DKeyFrameCollection.cs
- FlowLayout.cs
- ContextMenu.cs
- PropertyDescriptors.cs
- TrackingWorkflowEventArgs.cs
- versioninfo.cs
- DesignTableCollection.cs
- Button.cs
- SizeKeyFrameCollection.cs
- ZipIORawDataFileBlock.cs
- IndexerNameAttribute.cs
- MemoryPressure.cs
- GenericPrincipal.cs
- OdbcHandle.cs
- XmlAttributeOverrides.cs
- PassportAuthenticationModule.cs
- CFStream.cs
- SingleAnimation.cs
- NetStream.cs
- StateRuntime.cs
- oledbmetadatacolumnnames.cs
- FileDialog.cs
- ParserHooks.cs
- DocumentPageView.cs
- BlurEffect.cs
- CommandID.cs
- DocumentGridPage.cs
- ItemsControl.cs
- OdbcTransaction.cs
- TypeSemantics.cs
- OrderedDictionaryStateHelper.cs
- GridViewUpdatedEventArgs.cs
- SimpleFieldTemplateUserControl.cs