Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SafeSecurityHelper.cs
- TimeZone.cs
- SqlException.cs
- DirectoryObjectSecurity.cs
- MethodAccessException.cs
- JsonReader.cs
- WindowsRebar.cs
- StretchValidation.cs
- ClientTargetSection.cs
- SqlRowUpdatingEvent.cs
- SoapTypeAttribute.cs
- FontWeights.cs
- PassportAuthentication.cs
- WorkflowServiceHostFactory.cs
- JsonQueryStringConverter.cs
- CompiledQueryCacheKey.cs
- WebPartVerbCollection.cs
- Form.cs
- RtfFormatStack.cs
- FontStyleConverter.cs
- PreProcessor.cs
- HandlerElementCollection.cs
- CachedPathData.cs
- ProcessProtocolHandler.cs
- PackUriHelper.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SpeechEvent.cs
- FormatterConverter.cs
- xmlglyphRunInfo.cs
- WorkflowServiceNamespace.cs
- OleDbDataAdapter.cs
- WindowsListViewScroll.cs
- SystemBrushes.cs
- XmlElement.cs
- SqlConnectionStringBuilder.cs
- safex509handles.cs
- TextSelectionHighlightLayer.cs
- SelectionItemProviderWrapper.cs
- SoapSchemaMember.cs
- BasicHttpBindingCollectionElement.cs
- TableColumn.cs
- FilterEventArgs.cs
- XamlFigureLengthSerializer.cs
- SqlFactory.cs
- X500Name.cs
- ParameterToken.cs
- Types.cs
- MergePropertyDescriptor.cs
- IdentityReference.cs
- DBDataPermissionAttribute.cs
- ContentPosition.cs
- ColorKeyFrameCollection.cs
- ColorConvertedBitmapExtension.cs
- HttpCookieCollection.cs
- followingsibling.cs
- Item.cs
- TdsParserStaticMethods.cs
- FontDialog.cs
- StylusSystemGestureEventArgs.cs
- _RequestCacheProtocol.cs
- DetailsViewActionList.cs
- GeometryCombineModeValidation.cs
- WebBaseEventKeyComparer.cs
- RTLAwareMessageBox.cs
- WebSysDefaultValueAttribute.cs
- XmlQualifiedName.cs
- DataColumnMappingCollection.cs
- TypeSource.cs
- ControlBuilderAttribute.cs
- IndentedWriter.cs
- elementinformation.cs
- InlineCollection.cs
- ParameterModifier.cs
- BitmapEffectGeneralTransform.cs
- ToolStripDropDownClosingEventArgs.cs
- ImportContext.cs
- CroppedBitmap.cs
- ObjectResult.cs
- GrammarBuilderBase.cs
- TextEditorTyping.cs
- WriteLine.cs
- BlockCollection.cs
- X509Chain.cs
- SqlClientWrapperSmiStream.cs
- MetadataItemEmitter.cs
- ConfigErrorGlyph.cs
- GridErrorDlg.cs
- SQLMembershipProvider.cs
- StringValidator.cs
- WebBrowserNavigatingEventHandler.cs
- ToolStripRenderEventArgs.cs
- ProtectedConfigurationSection.cs
- EntitySqlQueryState.cs
- ComMethodElementCollection.cs
- DbResourceAllocator.cs
- TrailingSpaceComparer.cs
- EndOfStreamException.cs
- WebServiceEnumData.cs
- AsymmetricSignatureDeformatter.cs
- ClonableStack.cs