Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1305600 / 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
- ExpressionCopier.cs
- TemplateLookupAction.cs
- IxmlLineInfo.cs
- ThrowHelper.cs
- ExtentKey.cs
- ScaleTransform.cs
- XamlReaderHelper.cs
- SimplePropertyEntry.cs
- HtmlImage.cs
- X500Name.cs
- SecureStringHasher.cs
- DataBoundControl.cs
- _NativeSSPI.cs
- DataGridViewColumnEventArgs.cs
- SqlCachedBuffer.cs
- ScriptControl.cs
- IgnoreDeviceFilterElement.cs
- Deserializer.cs
- BitArray.cs
- MessagePartDescriptionCollection.cs
- OleTxTransactionInfo.cs
- StylusSystemGestureEventArgs.cs
- WebPartVerbCollection.cs
- SafeFileMappingHandle.cs
- BindingMAnagerBase.cs
- PackagingUtilities.cs
- DataGridViewToolTip.cs
- Calendar.cs
- ResourceReferenceExpressionConverter.cs
- GridSplitterAutomationPeer.cs
- QilExpression.cs
- ArithmeticLiteral.cs
- CommentEmitter.cs
- CollectionBase.cs
- StringArrayConverter.cs
- TextElement.cs
- DataGridRowEventArgs.cs
- DomainUpDown.cs
- CodeBinaryOperatorExpression.cs
- QuaternionAnimationUsingKeyFrames.cs
- ChannelBuilder.cs
- BamlLocalizableResource.cs
- AvtEvent.cs
- FileVersionInfo.cs
- PhysicalAddress.cs
- TypeDescriptor.cs
- CustomAttributeFormatException.cs
- SafeFindHandle.cs
- AsyncSerializedWorker.cs
- TagNameToTypeMapper.cs
- ToolStripManager.cs
- TextDecoration.cs
- HijriCalendar.cs
- LazyTextWriterCreator.cs
- PipelineModuleStepContainer.cs
- EnumValAlphaComparer.cs
- ResourceExpressionBuilder.cs
- DropDownList.cs
- OSFeature.cs
- ProfessionalColors.cs
- PenThread.cs
- ByteAnimationBase.cs
- GenericWebPart.cs
- SiteMapNode.cs
- WindowManager.cs
- EnumConverter.cs
- SqlNotificationEventArgs.cs
- InstanceKeyCompleteException.cs
- QueryOutputWriter.cs
- DataGridViewAddColumnDialog.cs
- AttachmentService.cs
- WebPartManager.cs
- AsymmetricKeyExchangeFormatter.cs
- basenumberconverter.cs
- ObjectReferenceStack.cs
- PolyQuadraticBezierSegment.cs
- MachineKeySection.cs
- BlurBitmapEffect.cs
- XsltArgumentList.cs
- remotingproxy.cs
- CompositeScriptReference.cs
- CodeTypeOfExpression.cs
- BreadCrumbTextConverter.cs
- CompoundFileStorageReference.cs
- EntityTypeEmitter.cs
- StringCollection.cs
- _FixedSizeReader.cs
- WebHttpDispatchOperationSelector.cs
- __ComObject.cs
- DataContractSerializerFaultFormatter.cs
- EnterpriseServicesHelper.cs
- View.cs
- HtmlInputImage.cs
- PaperSource.cs
- TraceUtility.cs
- PixelShader.cs
- FindCriteria.cs
- DataRecordObjectView.cs
- HeaderedContentControl.cs
- PropertyNames.cs