Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThumbAutomationPeer.cs
- ADMembershipProvider.cs
- ReadOnlyAttribute.cs
- InvalidContentTypeException.cs
- TableCellAutomationPeer.cs
- FixedSOMTableRow.cs
- Mappings.cs
- Debug.cs
- RangeValuePattern.cs
- ExpressionBuilderCollection.cs
- WindowsRichEdit.cs
- ImpersonateTokenRef.cs
- TreeView.cs
- ITreeGenerator.cs
- PeerNameRecord.cs
- OptionUsage.cs
- TiffBitmapDecoder.cs
- SizeChangedEventArgs.cs
- TextBounds.cs
- Latin1Encoding.cs
- FormsAuthenticationUserCollection.cs
- ErrorWrapper.cs
- GeneralTransformGroup.cs
- QilChoice.cs
- CompilerState.cs
- ParagraphVisual.cs
- ResponseBodyWriter.cs
- Polygon.cs
- MediaPlayerState.cs
- DataListItem.cs
- ToolConsole.cs
- SourceElementsCollection.cs
- TextRange.cs
- WebPartHeaderCloseVerb.cs
- ExtendedProtectionPolicy.cs
- AnyAllSearchOperator.cs
- SQLStringStorage.cs
- UInt32.cs
- ResolveCriteria.cs
- ByteAnimationBase.cs
- Version.cs
- SimplePropertyEntry.cs
- KnownTypesHelper.cs
- RoleBoolean.cs
- ResourceCodeDomSerializer.cs
- CheckedPointers.cs
- BinaryUtilClasses.cs
- XPathSelfQuery.cs
- SerialErrors.cs
- IriParsingElement.cs
- TextFormatterContext.cs
- LocalizedNameDescriptionPair.cs
- SecurityElement.cs
- Unit.cs
- SliderAutomationPeer.cs
- WebPartChrome.cs
- DefaultExpression.cs
- RelOps.cs
- DragDrop.cs
- DataGridViewMethods.cs
- TreeNodeCollectionEditor.cs
- FrameworkContextData.cs
- MenuItemStyleCollection.cs
- httpapplicationstate.cs
- ScriptResourceInfo.cs
- CellParaClient.cs
- PreviewKeyDownEventArgs.cs
- DataQuery.cs
- LabelAutomationPeer.cs
- CmsInterop.cs
- FactoryGenerator.cs
- X509Utils.cs
- DWriteFactory.cs
- BooleanStorage.cs
- GifBitmapDecoder.cs
- XmlSchemaCollection.cs
- _ContextAwareResult.cs
- DynamicAttribute.cs
- Drawing.cs
- SHA512Managed.cs
- DrawTreeNodeEventArgs.cs
- ConfigurationValidatorBase.cs
- TemplateBindingExpressionConverter.cs
- ArgIterator.cs
- ResourceReader.cs
- securestring.cs
- EndpointInfo.cs
- WebPartsSection.cs
- _NestedSingleAsyncResult.cs
- NullableBoolConverter.cs
- PopOutPanel.cs
- Container.cs
- MobileUserControl.cs
- DownloadProgressEventArgs.cs
- PointUtil.cs
- Misc.cs
- FaultConverter.cs
- AssemblyCollection.cs
- DBDataPermissionAttribute.cs
- RegexGroup.cs