Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- AsnEncodedData.cs
- ModelTreeEnumerator.cs
- XAMLParseException.cs
- BaseDataBoundControlDesigner.cs
- safesecurityhelperavalon.cs
- ToolboxItemCollection.cs
- CommentGlyph.cs
- SessionSwitchEventArgs.cs
- MaskedTextBoxTextEditor.cs
- MemberInitExpression.cs
- CompilerScopeManager.cs
- ResourceProviderFactory.cs
- NumericExpr.cs
- CachedPathData.cs
- DelegateArgumentReference.cs
- AnimationClock.cs
- IntSecurity.cs
- TextBoxAutoCompleteSourceConverter.cs
- XPathException.cs
- ServiceManager.cs
- EdmTypeAttribute.cs
- EncoderNLS.cs
- SqlProviderManifest.cs
- CryptoConfig.cs
- CodeMethodInvokeExpression.cs
- SoapSchemaMember.cs
- securestring.cs
- MSAAEventDispatcher.cs
- SubstitutionList.cs
- Verify.cs
- SudsParser.cs
- ProfileService.cs
- ComboBoxAutomationPeer.cs
- StylusSystemGestureEventArgs.cs
- BitmapEffectGroup.cs
- KeyFrames.cs
- DataGridLengthConverter.cs
- TextMetrics.cs
- BooleanFunctions.cs
- WindowsAuthenticationEventArgs.cs
- ChildTable.cs
- RenderTargetBitmap.cs
- WMIInterop.cs
- ToolConsole.cs
- SQLString.cs
- DependencyObjectProvider.cs
- ListBindingHelper.cs
- UserControlDocumentDesigner.cs
- TextPenaltyModule.cs
- ScaleTransform3D.cs
- ProfilePropertySettings.cs
- ClassHandlersStore.cs
- Stroke2.cs
- DataGridViewCellStyle.cs
- ListDictionary.cs
- SectionInformation.cs
- MouseOverProperty.cs
- CategoryGridEntry.cs
- XmlSignatureProperties.cs
- WeakEventManager.cs
- ReflectPropertyDescriptor.cs
- _FixedSizeReader.cs
- smtpconnection.cs
- NameValueConfigurationCollection.cs
- BodyWriter.cs
- PassportPrincipal.cs
- _ChunkParse.cs
- ClientConfigurationSystem.cs
- ShaperBuffers.cs
- XmlIterators.cs
- DependencyObjectProvider.cs
- DivideByZeroException.cs
- CodeMemberMethod.cs
- webeventbuffer.cs
- BindingContext.cs
- SeverityFilter.cs
- ExpressionConverter.cs
- securestring.cs
- xsdvalidator.cs
- EventLogEntryCollection.cs
- ConstraintStruct.cs
- SlotInfo.cs
- AttachmentCollection.cs
- TimersDescriptionAttribute.cs
- ParsedAttributeCollection.cs
- ScaleTransform3D.cs
- DocumentGridPage.cs
- InternalTypeHelper.cs
- UrlPath.cs
- SecurityUniqueId.cs
- HiddenFieldPageStatePersister.cs
- RC2.cs
- DescriptionAttribute.cs
- Parallel.cs
- ToolStripItem.cs
- PropertyMapper.cs
- RegisteredHiddenField.cs
- GenericWebPart.cs
- TransportConfigurationTypeElement.cs
- AddingNewEventArgs.cs