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 / AlignmentXValidation.cs / 1 / 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. //---------------------------------------------------------------------------- // //// 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
- ObjectSpanRewriter.cs
- KeyedCollection.cs
- TemplateBamlRecordReader.cs
- LinkUtilities.cs
- Int32.cs
- BlobPersonalizationState.cs
- TableAutomationPeer.cs
- _ShellExpression.cs
- RegexInterpreter.cs
- OptionalMessageQuery.cs
- NullableFloatSumAggregationOperator.cs
- ColumnWidthChangingEvent.cs
- RegionInfo.cs
- BindingGroup.cs
- ListBox.cs
- ObjectDataSource.cs
- DuplicateWaitObjectException.cs
- TextBoxDesigner.cs
- DataServiceSaveChangesEventArgs.cs
- ResizeGrip.cs
- TraceContextRecord.cs
- NullableDoubleSumAggregationOperator.cs
- MappingModelBuildProvider.cs
- Evidence.cs
- ExecutionContext.cs
- FolderBrowserDialogDesigner.cs
- HandlerBase.cs
- DynamicDocumentPaginator.cs
- ScrollChangedEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridTable.cs
- DiscardableAttribute.cs
- RemoveStoryboard.cs
- FontWeights.cs
- ReplacementText.cs
- RootBuilder.cs
- _SslState.cs
- StructuredType.cs
- CodePrimitiveExpression.cs
- StringToken.cs
- TreeNodeSelectionProcessor.cs
- ToolStripStatusLabel.cs
- ForeignKeyConstraint.cs
- CollectionBuilder.cs
- Int32CollectionConverter.cs
- SHA384.cs
- XmlBinaryReader.cs
- ISFClipboardData.cs
- ListViewItem.cs
- BidPrivateBase.cs
- TraceContextEventArgs.cs
- ProxyWebPartManager.cs
- ComponentCache.cs
- wgx_render.cs
- ProcessProtocolHandler.cs
- TransactionChannelFactory.cs
- CompositeDesignerAccessibleObject.cs
- ToolStripCodeDomSerializer.cs
- StylusCollection.cs
- RegexWorker.cs
- AssemblyCache.cs
- CompoundFileStorageReference.cs
- PolygonHotSpot.cs
- SmtpMail.cs
- DesignRelationCollection.cs
- ModuleBuilderData.cs
- DesignerValidatorAdapter.cs
- TreeNode.cs
- MinimizableAttributeTypeConverter.cs
- _Events.cs
- CharacterMetricsDictionary.cs
- HitTestWithPointDrawingContextWalker.cs
- WindowsClientElement.cs
- HashCodeCombiner.cs
- FileClassifier.cs
- ReversePositionQuery.cs
- XmlSchemaInferenceException.cs
- DataGridLengthConverter.cs
- StateMachineWorkflowInstance.cs
- TypeHelpers.cs
- KeySplineConverter.cs
- ResourceDescriptionAttribute.cs
- AdapterSwitches.cs
- Int64Converter.cs
- OracleParameterBinding.cs
- AuthenticatedStream.cs
- RulePatternOps.cs
- Serializer.cs
- ScaleTransform.cs
- FormsAuthenticationUserCollection.cs
- URLMembershipCondition.cs
- BlurBitmapEffect.cs
- PageParserFilter.cs
- Container.cs
- UserControl.cs
- WsdlImporterElement.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- RemotingConfiguration.cs
- ValueChangedEventManager.cs
- HttpRequestBase.cs